20 lines
298 B
1
export enum LogLevel {
2
SILLY,
3
TRACE,
4
DEBUG,
5
INFO,
6
WARN,
7
ERROR
8
}
9
10
type LogFunc = (...args: any[]) => void;
11
12
export type Logger = {
13
silly: LogFunc;
14
trace: LogFunc;
15
debug: LogFunc;
16
info: LogFunc;
17
warn: LogFunc;
18
error: LogFunc;
19
log: (level: LogLevel, args: any[]) => void;
20
};
21