Skip to content

Commit

Permalink
fix: use log level labels in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa committed Feb 10, 2025
1 parent f832dd1 commit 00bc104
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion website/config/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ const loggerConfig = defineConfig({
enabled: true,
name: env.get('APP_NAME'),
level: env.get('LOG_LEVEL'),

formatters: {
level: (label) => ({ level: label }),
},

transport: {
targets: targets()
pipeline: targets()
.pushIf(!app.inProduction, targets.pretty())
.pushIf(app.inProduction, targets.file({ destination: 1 }))
.toArray(),
Expand Down

0 comments on commit 00bc104

Please sign in to comment.