Skip to content

Commit f1a960f

Browse files
gitstartLuisChiej
authored andcommitted
Add timestamps to the logger messages
Signed-off-by: gitstart <[email protected]> Co-authored-by: LuisChiej <[email protected]>
1 parent 452042f commit f1a960f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/logger/src/winston-logger.injectable.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const winstonLoggerInjectable = getInjectable({
1010
id: "winston-logger",
1111
instantiate: (di) =>
1212
createLogger({
13-
format: format.combine(format.splat(), format.simple()),
13+
format: format.combine(format.splat(), format.simple(), format.timestamp({ format: 'DD/MM/YYYY HH:mm:ss' })),
1414
transports: di.injectMany(loggerTransportInjectionToken),
1515
}),
1616
});

0 commit comments

Comments
 (0)