1 | export interface ILoggerCallback {
|
2 | (level: LogLevel, message: string, containsPii: boolean): void;
|
3 | }
|
4 | export declare enum LogLevel {
|
5 | Error = 0,
|
6 | Warning = 1,
|
7 | Info = 2,
|
8 | Verbose = 3
|
9 | }
|
10 | export declare class Logger {
|
11 | |
12 |
|
13 |
|
14 | private static instance;
|
15 | |
16 |
|
17 |
|
18 | private correlationId;
|
19 | |
20 |
|
21 |
|
22 | private level;
|
23 | |
24 |
|
25 |
|
26 | private piiLoggingEnabled;
|
27 | |
28 |
|
29 |
|
30 | private localCallback;
|
31 | constructor(localCallback: ILoggerCallback, options?: {
|
32 | correlationId?: string;
|
33 | level?: LogLevel;
|
34 | piiLoggingEnabled?: boolean;
|
35 | });
|
36 | /**
|
37 | * @hidden
|
38 | */
|
39 | private logMessage;
|
40 | /**
|
41 | * @hidden
|
42 | */
|
43 | executeCallback(level: LogLevel, message: string, containsPii: boolean): void;
|
44 | /**
|
45 | * @hidden
|
46 | */
|
47 | error(message: string): void;
|
48 | /**
|
49 | * @hidden
|
50 | */
|
51 | errorPii(message: string): void;
|
52 | /**
|
53 | * @hidden
|
54 | */
|
55 | warning(message: string): void;
|
56 | /**
|
57 | * @hidden
|
58 | */
|
59 | warningPii(message: string): void;
|
60 | /**
|
61 | * @hidden
|
62 | */
|
63 | info(message: string): void;
|
64 | /**
|
65 | * @hidden
|
66 | */
|
67 | infoPii(message: string): void;
|
68 | /**
|
69 | * @hidden
|
70 | */
|
71 | verbose(message: string): void;
|
72 | /**
|
73 | * @hidden
|
74 | */
|
75 | verbosePii(message: string): void;
|
76 | isPiiLoggingEnabled(): boolean;
|
77 | }
|