1 | export declare class Logger {
|
2 | private start;
|
3 | private scope;
|
4 | constructor(scope: string);
|
5 | ready(color?: string, bold?: boolean): void;
|
6 | finish(color?: string, bold?: boolean): void;
|
7 | private completed(type, color, bold);
|
8 | fail(err: Error): Error;
|
9 | setStartTime(startTime: number): void;
|
10 | /**
|
11 | * Does not print out a time prefix or color any text. Only prefix
|
12 | * with whitespace so the message is lined up with timestamped logs.
|
13 | */
|
14 | static log(...msg: any[]): void;
|
15 | /**
|
16 | * Prints out a dim colored timestamp prefix, with optional color
|
17 | * and bold message.
|
18 | */
|
19 | static info(msg: string, color?: string, bold?: boolean): void;
|
20 | /**
|
21 | * Prints out a yellow colored timestamp prefix.
|
22 | */
|
23 | static warn(...msg: any[]): void;
|
24 | /**
|
25 | * Prints out a error colored timestamp prefix.
|
26 | */
|
27 | static error(...msg: any[]): void;
|
28 | static unformattedError(msg: string): void;
|
29 | static unformattedDebug(msg: string): void;
|
30 | /**
|
31 | * Prints out a blue colored DEBUG prefix. Only prints out when debug mode.
|
32 | */
|
33 | static debug(...msg: any[]): void;
|
34 | static wordWrap(msg: any[]): string[];
|
35 | static formatFileName(rootDir: string, fileName: string): string;
|
36 | static formatHeader(type: string, fileName: string, rootDir: string, startLineNumber?: number, endLineNumber?: number): string;
|
37 | static newLine(): void;
|
38 | static INDENT: string;
|
39 | static MAX_LEN: number;
|
40 | }
|