-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.ts
56 lines (45 loc) · 1.34 KB
/
typings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export interface BrowserOptions {
enabled?: string[];
timestamp?: boolean;
}
export interface NodejsOptions {
enabled?: string[];
filesystem?: FilesystemOptions;
timestamp?: boolean
}
export interface FilesystemOptions {
enabled: boolean;
path?: string;
}
export declare class Logger {
constructor(options?: BrowserOptions | NodejsOptions)
options: BrowserOptions | NodejsOptions;
debug(msg: string): void;
debug(obj: any): void;
debug(msg: string, obj: any): void;
debug(msg: string, obj: any, force: boolean): void;
info(msg: string): void;
info(obj: any): void;
info(msg: string, obj: any): void;
info(msg: string, obj: any, force: boolean): void;
cron(msg: string): void;
cron(obj: any): void;
cron(msg: string, obj: any): void;
cron(msg: string, obj: any, force: boolean): void;
db(msg: string): void;
db(obj: any): void;
db(msg: string, obj: any): void;
db(msg: string, obj: any, force: boolean): void;
success(msg: string): void;
success(obj: any): void;
success(msg: string, obj: any): void;
success(msg: string, obj: any, force: boolean): void;
warn(msg: string): void;
warn(obj: any): void;
warn(msg: string, obj: any): void;
warn(msg: string, obj: any, force: boolean): void;
error(msg: string): void;
error(obj: any): void;
error(msg: string, obj: any): void;
error(msg: string, obj: any, force: boolean): void;
}