structlog
Version:
Structured logging tool for Node.js.
26 lines (25 loc) • 632 B
TypeScript
export declare enum LogType {
Debug = "debug",
Info = "info",
Log = "log",
Warn = "warn",
Error = "error"
}
export declare enum TimestampFormat {
Iso = "iso",
Utc = "utc",
Gmt = "gmt",
TimeString = "timestring",
LocaleString = "localestring",
UnixTimestamp = "unix"
}
export interface LogOptions extends Record<string, any> {
timestampFormat: TimestampFormat;
logFormat: string;
pathFormat: string;
pathStackDepth: number;
useColors: boolean;
useThreadTagsExtension: boolean;
useLogIdExtension: boolean;
}
export declare type LogTags = Record<string, string>;