1 | export interface Logger {
|
2 | warn(...args: any[]): void;
|
3 | error(...args: any[]): void;
|
4 | info(...args: any[]): void;
|
5 | log(...args: any[]): void;
|
6 | debug(...args: any[]): void;
|
7 | }
|
8 | export declare class ConsoleLogger {
|
9 | prefix: string;
|
10 | constructor(prefix: string);
|
11 | warn(...args: any[]): void;
|
12 | error(...args: any[]): void;
|
13 | info(...args: any[]): void;
|
14 | debug(...args: any[]): void;
|
15 | log(...args: any[]): void;
|
16 | format(args_: any): any;
|
17 | }
|
18 | export declare class NullLogger {
|
19 | warn(..._args: any[]): void;
|
20 | error(..._args: any[]): void;
|
21 | info(..._args: any[]): void;
|
22 | log(..._args: any[]): void;
|
23 | debug(..._args: any[]): void;
|
24 | }
|
25 | export declare class FilteredLogger {
|
26 | private _logger;
|
27 | private _predicate;
|
28 | static UserLevelFilter: (level: string, _args: any[]) => boolean;
|
29 | static DeveloperLevelFilter: (_level: string, _args: any[]) => true;
|
30 | constructor(logger: Logger, predicate?: (level: string, args: any[]) => boolean);
|
31 | warn(...args: any[]): void;
|
32 | error(...args: any[]): void;
|
33 | info(...args: any[]): void;
|
34 | debug(...args: any[]): void;
|
35 | log(...args: any[]): void;
|
36 | }
|