1 | export declare enum LoggingLevel {
|
2 | OFF = 0,
|
3 | ERROR = 1,
|
4 | WARN = 2,
|
5 | DEBUG = 3,
|
6 | VERBOSE = 4
|
7 | }
|
8 | /**
|
9 | * This class takes care of logging while fixing issues regarding the type script service logger.
|
10 | * It logs to a file called "log.txt" in the root of this project.
|
11 | */
|
12 | export declare class Logger {
|
13 | level: LoggingLevel;
|
14 | private logPath;
|
15 | cwd: string;
|
16 | /**
|
17 | * Resets the log file.
|
18 | */
|
19 | resetLogs(): void;
|
20 | /**
|
21 | * Logs if this.level >= DEBUG
|
22 | * @param args
|
23 | */
|
24 | debug(...args: any[]): void;
|
25 | /**
|
26 | * Logs if this.level >= ERROR
|
27 | * @param args
|
28 | */
|
29 | error(...args: any[]): void;
|
30 | /**
|
31 | * Logs if level >= WARN
|
32 | * @param args
|
33 | */
|
34 | warn(...args: any[]): void;
|
35 | /**
|
36 | * Logs if level >= VERBOSE
|
37 | * @param args
|
38 | */
|
39 | verbose(...args: any[]): void;
|
40 | /**
|
41 | * Appends a log if this.level > level
|
42 | * @param level
|
43 | * @param args
|
44 | */
|
45 | private appendLogWithLevel;
|
46 | /**
|
47 | * Appends a log entry to the log file.
|
48 | * @param prefix
|
49 | * @param args
|
50 | */
|
51 | private appendLog;
|
52 | private getLogLevelPrefix;
|
53 | private getLogLevelSeverityPrefix;
|
54 | }
|
55 | export declare const logger: Logger;
|
56 | //# sourceMappingURL=logger.d.ts.map |
\ | No newline at end of file |