Skip to content

Commit

Permalink
feat: more logger configs
Browse files Browse the repository at this point in the history
  • Loading branch information
iaurg authored Nov 11, 2023
1 parent 4c8071f commit 470697d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ import { LoggerModule } from 'nestjs-pino';
imports: [
LoggerModule.forRoot({
pinoHttp: {
level: process.env.NODE_ENV !== 'production' ? 'debug' : 'info',
transport: {
target: 'pino-pretty',
options: {
singleLine: true,
levelFirst: true,
colorize: true,
// translateTime for São Paulo timezone into a pretty format
translateTime: 'SYS:dd/mm/yyyy HH:MM:ss',
},
},
},
Expand Down

0 comments on commit 470697d

Please sign in to comment.