UNPKG

@villedemontreal/logger

Version:
22 lines 778 B
import { ILogger, LogLevel } from './logger'; /** * A Logger wrapper that allows to lazyly create a * real Logger. * * The first time a log is perform, the * "loggerCreator" will be called to create * the actual Logger. */ export declare class LazyLogger implements ILogger { private realLogger; private name; private loggerCreator; constructor(name: string, loggerCreator: (name: string) => ILogger); debug(messageObj: any, txtMsg?: string): void; info(messageObj: any, txtMsg?: string): void; warning(messageObj: any, txtMsg?: string): void; error(messageObj: any, txtMsg?: string): void; log(level: LogLevel, messageObj: any, txtMsg?: string): void; protected getRealLogger(): ILogger; } //# sourceMappingURL=lazyLogger.d.ts.map