import {
  LogLevel,
  LogLevelLabel
} from "./chunk-WN4V6QSX.js";
import {
  __name,
  init_esm_shims
} from "./chunk-65NJ2BNV.js";

// src/logger/get-log-level.ts
init_esm_shims();
var getLogLevel = /* @__PURE__ */ __name((label) => {
  switch (label) {
    case "all":
      return LogLevel.ALL;
    case "trace":
      return LogLevel.TRACE;
    case "debug":
      return LogLevel.DEBUG;
    case "info":
      return LogLevel.INFO;
    case "warn":
      return LogLevel.WARN;
    case "error":
      return LogLevel.ERROR;
    case "fatal":
      return LogLevel.FATAL;
    case "silent":
      return LogLevel.SILENT;
    default:
      return LogLevel.INFO;
  }
}, "getLogLevel");
var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
  if (logLevel >= LogLevel.ALL) {
    return LogLevelLabel.ALL;
  }
  if (logLevel >= LogLevel.TRACE) {
    return LogLevelLabel.TRACE;
  }
  if (logLevel >= LogLevel.DEBUG) {
    return LogLevelLabel.DEBUG;
  }
  if (logLevel >= LogLevel.INFO) {
    return LogLevelLabel.INFO;
  }
  if (logLevel >= LogLevel.WARN) {
    return LogLevelLabel.WARN;
  }
  if (logLevel >= LogLevel.ERROR) {
    return LogLevelLabel.ERROR;
  }
  if (logLevel >= LogLevel.FATAL) {
    return LogLevelLabel.FATAL;
  }
  if (logLevel <= LogLevel.SILENT) {
    return LogLevelLabel.SILENT;
  }
  return LogLevelLabel.INFO;
}, "getLogLevelLabel");
var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
  const logLevel = typeof label === "string" ? getLogLevel(label) : label;
  return logLevel >= LogLevel.DEBUG;
}, "isVerbose");

export {
  getLogLevel,
  getLogLevelLabel,
  isVerbose
};
