2020-08-07 13:54:06 +00:00
|
|
|
export declare enum LogLevel {
|
|
|
|
ALL = 0,
|
|
|
|
TRACE = 1,
|
|
|
|
DEBUG = 2,
|
|
|
|
LOG = 3,
|
|
|
|
INFO = 4,
|
|
|
|
WARN = 5,
|
|
|
|
ERROR = 6,
|
|
|
|
FATAL = 7
|
|
|
|
}
|
2021-07-23 04:58:34 +00:00
|
|
|
export declare function parseLogLevel(str: string, defaultLevel?: LogLevel): LogLevel;
|
2020-08-07 13:54:06 +00:00
|
|
|
export interface LogMessage {
|
|
|
|
scope: string;
|
|
|
|
level: LogLevel;
|
|
|
|
message: string | object;
|
|
|
|
stacktrace: string;
|
|
|
|
error?: Error;
|
|
|
|
timestamp: Date;
|
|
|
|
}
|
|
|
|
export default LogMessage;
|