import { selectTransport } from "./transport.js";
import { getLogLevel, isLevelEnabled, resetLogLevelCache, OM_LOG_LEVEL_ENV } from "./level.js";
import { resetServerLoggerCache, OM_LOG_DESTINATION_ENV } from "./transport.server.js";
import { resetLogPrettyCache, OM_LOG_PRETTY_ENV } from "./transport.pretty.js";
const loggerRegistry = /* @__PURE__ */ new Map();
function createLogger(namespace) {
  const existing = loggerRegistry.get(namespace);
  if (existing) return existing;
  const created = selectTransport(namespace);
  loggerRegistry.set(namespace, created);
  return created;
}
function resetLoggerRegistry() {
  loggerRegistry.clear();
}
export {
  OM_LOG_DESTINATION_ENV,
  OM_LOG_LEVEL_ENV,
  OM_LOG_PRETTY_ENV,
  createLogger,
  getLogLevel,
  isLevelEnabled,
  resetLogLevelCache,
  resetLogPrettyCache,
  resetLoggerRegistry,
  resetServerLoggerCache
};
//# sourceMappingURL=index.js.map
