@bitblit/ratchet-common
Version:
Common tools for general use
11 lines (10 loc) • 596 B
TypeScript
import { LoggerLevelName } from './logger-level-name.js';
import { LoggerOutputFunction } from './logger-output-function.js';
export declare class LoggerUtil {
private static LOG_LEVELS_IN_ORDER;
static handlerFunctionMap(outputFn?: LoggerOutputFunction): Map<LoggerLevelName, (...any: any[]) => void>;
static defaultHandlerFunction(): (...any: any[]) => void;
static levelIsEnabled(targetLevel: LoggerLevelName, currentEnabled: LoggerLevelName): boolean;
static loggerLevelIndex(targetLevel: LoggerLevelName): number;
static indexToLevel(idx: number): LoggerLevelName;
}