mirror of
https://github.com/lensapp/lens.git
synced 2024-09-11 09:25:26 +03:00
Add timestamps to the logger messages
Signed-off-by: gitstart <bot@gitstart.com> Co-authored-by: LuisChiej <54555805+LuisChiej@users.noreply.github.com>
This commit is contained in:
parent
452042f5c5
commit
f1a960fd78
@ -10,7 +10,7 @@ export const winstonLoggerInjectable = getInjectable({
|
|||||||
id: "winston-logger",
|
id: "winston-logger",
|
||||||
instantiate: (di) =>
|
instantiate: (di) =>
|
||||||
createLogger({
|
createLogger({
|
||||||
format: format.combine(format.splat(), format.simple()),
|
format: format.combine(format.splat(), format.simple(), format.timestamp({ format: 'DD/MM/YYYY HH:mm:ss' })),
|
||||||
transports: di.injectMany(loggerTransportInjectionToken),
|
transports: di.injectMany(loggerTransportInjectionToken),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user