Add pino
This commit is contained in:
@@ -57,6 +57,7 @@
|
|||||||
"eslint-plugin-prettier": "5.2.2",
|
"eslint-plugin-prettier": "5.2.2",
|
||||||
"globals": "16.0.0",
|
"globals": "16.0.0",
|
||||||
"jest": "30.0.0",
|
"jest": "30.0.0",
|
||||||
|
"pino-pretty": "13.1.1",
|
||||||
"prettier": "3.4.2",
|
"prettier": "3.4.2",
|
||||||
"prisma": "6.14.0",
|
"prisma": "6.14.0",
|
||||||
"source-map-support": "0.5.21",
|
"source-map-support": "0.5.21",
|
||||||
|
|||||||
@@ -23,7 +23,15 @@ import { AuthController } from './auth/auth.controller';
|
|||||||
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
|
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
|
||||||
transport:
|
transport:
|
||||||
process.env.NODE_ENV !== 'production'
|
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,
|
: undefined,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user