pino is a very low overhead Node.js logger.
Questions tagged [pinojs]
62 questions
0
votes
0 answers
How to change USERLVL log name to QUERY using pino logger?
I add the customLevels with query:35 in the code but nit able to print as QUERY in the terminal.It is printing as below.Could any one suggest on how we can print as QUERY instead of USERLVL.
2021-10-28 09:25:22.046 +0000] USERLVL(1888 on…

user12562761
- 1
- 5
0
votes
1 answer
Can we add filter the req object generated by pinoLogger on express. Like it shows cookie in req object before its logged into the file using ddStream
import pinoMulti from 'pino-multi-stream';
const { NODE_ENV, DD_API_KEY, LOGGER_TYPE } = process.env;
const ddStream = {
stream: ddTransport.createWriteStreamSync({
//TODO: Investigate better "tags!"
apiKey: `${DD_API_KEY}`,
size:…

Learner
- 99
- 3
- 14