UNPKG

768 BTypeScriptView Raw
1import ILogger from "./ILogger";
2import ILoggerStrategy from "./ILoggerStrategy";
3export declare class Logger implements ILogger {
4 strategy: ILoggerStrategy;
5 constructor(strategy: ILoggerStrategy);
6 error(message: string, contextID?: string): void;
7 warn(message: string, contextID?: string): void;
8 info(message: string, contextID?: string): void;
9 verbose(message: string, contextID?: string): void;
10 debug(message: string, contextID?: string): void;
11}
12declare const logger: Logger;
13/**
14 * Config global singleton logger instance.
15 *
16 * @export
17 * @param {boolean} enable
18 * @param {string} [logFile]
19 */
20export declare function configLogger(enable: boolean, logFile?: string): void;
21export default logger;
22//# sourceMappingURL=Logger.d.ts.map
\No newline at end of file