{
  "version": 3,
  "sources": ["../../../src/config/logging.ts"],
  "sourcesContent": ["/* istanbul ignore file */\n\nlet globalLogger: Logger = {};\n\nconst globalSpecialLoggingEnabledFor: Partial<Record<SpecialLoggingType, boolean | undefined>> = {\n  'binding-lock-duration-warnings': false\n};\n\nexport interface Logger {\n  debug?: (message?: any, ...optionalParams: any[]) => void;\n  error?: (message?: any, ...optionalParams: any[]) => void;\n  info?: (message?: any, ...optionalParams: any[]) => void;\n  log?: (message?: any, ...optionalParams: any[]) => void;\n  warn?: (message?: any, ...optionalParams: any[]) => void;\n}\n\n/** Gets the logger registered using `setLogger` */\nexport const getLogger = () => globalLogger;\n\n/** Sets the logger to be used.  It's not recommended to set a logger in production environments */\nexport const setLogger = (logger: Logger) => {\n  globalLogger = logger;\n};\n\nexport type SpecialLoggingType = 'binding-lock-duration-warnings';\n\n/** Checks if logging is enabled for the specified type */\nexport const isSpecialLoggingEnabledFor = (type: SpecialLoggingType) => globalSpecialLoggingEnabledFor[type] ?? false;\n\n/** Enables or disables logging for the specified type */\nexport const setSpecialLoggingEnabledFor = (type: SpecialLoggingType, enabled: boolean) => (globalSpecialLoggingEnabledFor[type] = enabled);\n"],
  "mappings": "AAEA,IAAI,eAAuB,CAAC;AAE5B,MAAM,iCAA2F;AAAA,EAC/F,kCAAkC;AACpC;AAWO,MAAM,YAAY,MAAM;AAGxB,MAAM,YAAY,CAAC,WAAmB;AAC3C,iBAAe;AACjB;AAKO,MAAM,6BAA6B,CAAC,SAA6B,+BAA+B,IAAI,KAAK;AAGzG,MAAM,8BAA8B,CAAC,MAA0B,YAAsB,+BAA+B,IAAI,IAAI;",
  "names": []
}
