1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { JsonObject } from '../json/utils';
|
9 | import { LogLevel, Logger } from './logger';
|
10 | export declare class LevelTransformLogger extends Logger {
|
11 | readonly name: string;
|
12 | readonly parent: Logger | null;
|
13 | readonly levelTransform: (level: LogLevel) => LogLevel;
|
14 | constructor(name: string, parent: (Logger | null) | undefined, levelTransform: (level: LogLevel) => LogLevel);
|
15 | log(level: LogLevel, message: string, metadata?: JsonObject): void;
|
16 | createChild(name: string): Logger;
|
17 | }
|
18 | export declare class LevelCapLogger extends LevelTransformLogger {
|
19 | readonly name: string;
|
20 | readonly parent: Logger | null;
|
21 | readonly levelCap: LogLevel;
|
22 | static levelMap: {
|
23 | [cap: string]: {
|
24 | [level: string]: string;
|
25 | };
|
26 | };
|
27 | constructor(name: string, parent: (Logger | null) | undefined, levelCap: LogLevel);
|
28 | }
|