mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
21 lines
379 B
TypeScript
21 lines
379 B
TypeScript
export type LogFn = (...args: Array<unknown>) => void;
|
|
|
|
export type LoggerType = {
|
|
fatal: LogFn;
|
|
error: LogFn;
|
|
warn: LogFn;
|
|
info: LogFn;
|
|
debug: LogFn;
|
|
trace: LogFn;
|
|
};
|
|
|
|
// These match Pino's recommendations https://getpino.io/#/docs/api?id=loggerlevels-object
|
|
export enum LogLevel {
|
|
Fatal = 60,
|
|
Error = 50,
|
|
Warn = 40,
|
|
Info = 30,
|
|
Debug = 20,
|
|
Trace = 10,
|
|
}
|