1
0
mirror of https://github.com/lensapp/lens.git synced 2024-11-24 11:15:16 +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:
gitstart 2023-08-01 16:59:26 +00:00 committed by Sebastian Malton
parent 452042f5c5
commit f1a960fd78

View File

@ -10,7 +10,7 @@ export const winstonLoggerInjectable = getInjectable({
id: "winston-logger",
instantiate: (di) =>
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),
}),
});