diff --git a/backend/src/app.module.ts b/backend/src/app.module.ts index f61e23aa..186b8464 100644 --- a/backend/src/app.module.ts +++ b/backend/src/app.module.ts @@ -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', }, }, },