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


var _chunk3HOVXAQZcjs = require('./chunk-3HOVXAQZ.cjs');


var _chunkI4SIJOYBcjs = require('./chunk-I4SIJOYB.cjs');


var _chunkJT5CJFOScjs = require('./chunk-JT5CJFOS.cjs');


var _chunkDEWCXJEQcjs = require('./chunk-DEWCXJEQ.cjs');




var _chunkSCFUDB74cjs = require('./chunk-SCFUDB74.cjs');

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



exports.createLogger = createLogger;
