Skip to content

Commit

Permalink
Add timestamps to the logger messages
Browse files Browse the repository at this point in the history
Signed-off-by: gitstart <bot@gitstart.com>
Co-authored-by: LuisChiej <54555805+LuisChiej@users.noreply.github.com>
  • Loading branch information
2 people authored and Nokel81 committed Aug 9, 2023
1 parent 452042f commit f1a960f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logger/src/winston-logger.injectable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}),
});

0 comments on commit f1a960f

Please sign in to comment.