pinomin time field

This commit is contained in:
Jan Prochazka 2023-01-27 16:31:06 +01:00
parent 331c303e8f
commit 2fee308185

View File

@ -25,6 +25,7 @@ export interface ILogger {
level: number;
msg: string;
pid: number;
time: number;
}
class PinoLikeLogger implements ILogger {
@ -69,6 +70,7 @@ export interface ILogger {
level,
msg,
pid: this.config.pid,
time: new Date().getTime(),
};
}
return {
@ -76,7 +78,8 @@ export interface ILogger {
level,
msg: data,
pid: this.config.pid,
};
time: new Date().getTime(),
};
}
log(record: ILogRecord) {