Skip to content

Commit

Permalink
Update level formatter in Logger class
Browse files Browse the repository at this point in the history
  • Loading branch information
MXPOL committed Feb 11, 2024
1 parent b1444da commit 0405829
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/external-db-logger/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export class Logger implements ILogger {
level,
messageKey: 'message',
formatters: {
level: (label) => ({ level: label.toUpperCase() }),
level: (label, number) => ({
severity: label.toUpperCase(),
level: number,
}),
},
})
}
Expand Down

0 comments on commit 0405829

Please sign in to comment.