1 | import * as ts from 'typescript';
|
2 | export declare enum LogLevel {
|
3 | Verbose = 0,
|
4 | Info = 1,
|
5 | Warn = 2,
|
6 | Error = 3,
|
7 | Success = 4
|
8 | }
|
9 | export declare class Logger {
|
10 | errorCount: number;
|
11 | hasErrors(): boolean;
|
12 | resetErrors(): void;
|
13 | write(text: string, ...args: string[]): void;
|
14 | writeln(text: string, ...args: string[]): void;
|
15 | success(text: string, ...args: string[]): void;
|
16 | verbose(text: string, ...args: string[]): void;
|
17 | warn(text: string, ...args: string[]): void;
|
18 | error(text: string, ...args: string[]): void;
|
19 | log(message: string, level?: LogLevel, newLine?: boolean): void;
|
20 | diagnostics(diagnostics: ReadonlyArray<ts.Diagnostic>): void;
|
21 | diagnostic(diagnostic: ts.Diagnostic): void;
|
22 | }
|
23 | export declare class ConsoleLogger extends Logger {
|
24 | log(message: string, level?: LogLevel, newLine?: boolean): void;
|
25 | }
|
26 | export declare class CallbackLogger extends Logger {
|
27 | callback: Function;
|
28 | constructor(callback: Function);
|
29 | log(message: string, level?: LogLevel, newLine?: boolean): void;
|
30 | }
|