"use strict";Object.defineProperty(exports, "__esModule", {value: true});


var _chunkD7SRJTRQcjs = require('./chunk-D7SRJTRQ.cjs');


var _chunkMUKNCWDCcjs = require('./chunk-MUKNCWDC.cjs');


var _chunk3ALZEFKMcjs = require('./chunk-3ALZEFKM.cjs');


var _chunkO4SGVAEBcjs = require('./chunk-O4SGVAEB.cjs');




var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');

// src/logger/create-logger.ts
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
var import_chalk = _chunkDFJNOFN2cjs.__toESM.call(void 0, _chunk3ALZEFKMcjs.require_source.call(void 0, ), 1);
async function createLogger(config) {
  const workspaceRoot = _chunkMUKNCWDCcjs.findWorkspaceRoot.call(void 0, );
  if (!workspaceRoot) {
    throw new Error("Cannot find workspace root");
  }
  const writeFatal = _chunkD7SRJTRQcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.FATAL, config, import_chalk.default);
  const writeError = _chunkD7SRJTRQcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.ERROR, config, import_chalk.default);
  const writeWarning = _chunkD7SRJTRQcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.WARN, config, import_chalk.default);
  const writeInfo = _chunkD7SRJTRQcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.INFO, config, import_chalk.default);
  const writeSuccess = _chunkD7SRJTRQcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.SUCCESS, config, import_chalk.default);
  const writeDebug = _chunkD7SRJTRQcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.DEBUG, config, import_chalk.default);
  const writeTrace = _chunkD7SRJTRQcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.DEBUG, config, import_chalk.default);
  return {
    fatal: writeFatal,
    error: writeError,
    warning: writeWarning,
    info: writeInfo,
    success: writeSuccess,
    debug: writeDebug,
    trace: writeTrace,
    getStopwatch: _chunkD7SRJTRQcjs.getStopwatch
  };
}
_chunkDFJNOFN2cjs.__name.call(void 0, createLogger, "createLogger");



exports.createLogger = createLogger;
