Skip to content

Commit

Permalink
pretty logs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleonm committed Jan 14, 2025
1 parent 53a74b9 commit 59bdaf4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/modules/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,13 @@ interface ILogBinding {
},
},
customAttributeKeys: { req: 'httpRequest', res: 'httpResponse' },
transport: GlobalConfig.environment.isProduction
? undefined
: {
target: 'pino-pretty',
options: {
singleLine: true,
colorize: true,
},
},
transport: {
target: 'pino-pretty',
options: {
singleLine: true,
colorize: true,
},
},
genReqId: (request: IncomingMessage, response: ServerResponse<IncomingMessage>): ReqId => {
let id: ReqId = request.id ?? request.headers['x-request-id']
if (!id) {
Expand Down

0 comments on commit 59bdaf4

Please sign in to comment.