1 | import { Level } from './level';
|
2 | export declare class Logger {
|
3 | private name;
|
4 | color: string;
|
5 | private developmentMode;
|
6 | private allowed;
|
7 | private isMuted;
|
8 | fixedWidth: number | undefined;
|
9 | private _level;
|
10 | setLevel(l: Level): this;
|
11 | get isProductionMode(): boolean;
|
12 | setProductionMode(productionMode: boolean): this;
|
13 | mute(): this;
|
14 | constructor(name: string, color: string, developmentMode: boolean, allowed: Level[], isMuted: boolean, fixedWidth: number | undefined);
|
15 | onlyWhen(expression: (() => boolean) | boolean): void;
|
16 | private _data;
|
17 | private _error;
|
18 | private _info;
|
19 | private _warn;
|
20 | /** @deprecated Use data(...)
|
21 | * @see data
|
22 | */
|
23 | d: (name: string, ...data: any[]) => this;
|
24 | /** @deprecated Use error(...)
|
25 | * @see error
|
26 | */
|
27 | er: (name: string, ...data: any[]) => this;
|
28 | /** @deprecated Use info(...)
|
29 | * @see info
|
30 | */
|
31 | i: (name: string, ...data: any[]) => this;
|
32 | /** @deprecated Use warn(...)
|
33 | * @see warn
|
34 | */
|
35 | w: (name: string, ...data: any[]) => this;
|
36 | /**
|
37 | * Logs message and data with the level=data
|
38 | * @param message The message
|
39 | * @param otherParams Additional parameters
|
40 | */
|
41 | data: (message: string, ...otherParams: any[]) => this;
|
42 | /**
|
43 | * Logs message and data with the level=error
|
44 | * @param message The message
|
45 | * @param otherParams Additional parameters
|
46 | */
|
47 | error: (message: string, ...otherParams: any[]) => this;
|
48 | /**
|
49 | * Logs message and data with the level=info
|
50 | * @param message The message
|
51 | * @param otherParams Additional parameters
|
52 | */
|
53 | info: (message: string, ...otherParams: any[]) => this;
|
54 | /**
|
55 | * Logs message and data with the level=warn
|
56 | * @param message The message
|
57 | * @param otherParams Additional parameters
|
58 | */
|
59 | warn: (message: string, ...otherParams: any[]) => this;
|
60 | }
|