js-logging/dist/log-message.d.ts

20 lines
339 B
TypeScript
Raw Normal View History

export declare enum LogLevel {
ALL = 0,
TRACE = 1,
DEBUG = 2,
LOG = 3,
INFO = 4,
WARN = 5,
ERROR = 6,
FATAL = 7
}
export interface LogMessage {
scope: string;
level: LogLevel;
message: string | object;
stacktrace: string;
error?: Error;
timestamp: Date;
}
export default LogMessage;