mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
pinomin time field
This commit is contained in:
parent
331c303e8f
commit
2fee308185
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user