-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
60 lines (60 loc) · 2.12 KB
/
index.d.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
57
58
59
60
declare type LogLevelNumber = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
declare type LogData = {
[field: string]: any;
};
export default class IbtJsLogger {
#private;
static FATAL: LogLevelNumber;
static ERROR: LogLevelNumber;
static WARN: LogLevelNumber;
static INFO: LogLevelNumber;
static DEBUG: LogLevelNumber;
static TRACE: LogLevelNumber;
static VERBOSE: LogLevelNumber;
static LogLevel: string;
static PrependString: string;
static PrefixString: string;
static ShowTimestamp: string;
static SeparatorString: string;
static AppendString: string;
/**
*
*/
static init: ({ logLevel, prependString, prefixString, showTimestamp, separatorString, appendString, }: {
logLevel?: LogLevelNumber | undefined;
prependString?: string | undefined;
prefixString?: string | undefined;
showTimestamp?: boolean | undefined;
separatorString?: string | undefined;
appendString?: string | undefined;
}) => void;
/**
*
*/
static setLogLevel: (logLevel?: LogLevelNumber, logContainerName?: string | null) => void;
/**
*
*/
static trace: (containerName: string, tag?: string | undefined, message?: string | LogData | undefined, data?: LogData | undefined) => boolean;
/**
*
*/
static debug: (containerName: string, tag?: string | undefined, message?: string | LogData | undefined, data?: LogData | undefined) => boolean;
/**
*
*/
static info: (containerName: string, tag?: string | undefined, message?: string | LogData | undefined, data?: LogData | undefined) => boolean;
/**
*
*/
static warn: (containerName: string, tag?: string | undefined, message?: string | LogData | undefined, data?: LogData | undefined) => boolean;
/**
*
*/
static error: (containerName: string, tag?: string | undefined, message?: string | LogData | undefined, data?: LogData | undefined) => boolean;
/**
*
*/
static fatal: (containerName: string, tag?: string | undefined, message?: string | LogData | undefined, data?: LogData | undefined) => boolean;
}
export {};