This commit is contained in:
LeoMortari
2025-09-15 01:25:33 -03:00
parent bc2eb042cb
commit b8c70d81c8
2 changed files with 10 additions and 1 deletions

View File

@@ -23,7 +23,15 @@ import { AuthController } from './auth/auth.controller';
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
transport:
process.env.NODE_ENV !== 'production'
? { target: 'pino-pretty' }
? {
target: 'pino-pretty',
options: {
colorize: true,
levelFirst: true,
translateTime: 'SYS:HH:MM:ss.l',
ignore: 'pid,hostname',
},
}
: undefined,
},
}),