1 | import ILogger from "./ILogger";
|
2 | import ILoggerStrategy from "./ILoggerStrategy";
|
3 | export 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 | }
|
12 | declare const logger: Logger;
|
13 | /**
|
14 | * Config global singleton logger instance.
|
15 | *
|
16 | * @export
|
17 | * @param {boolean} enable
|
18 | * @param {string} [logFile]
|
19 | */
|
20 | export declare function configLogger(enable: boolean, logFile?: string): void;
|
21 | export default logger;
|
22 |
|
\ | No newline at end of file |