How to use the child function from pino

Find comprehensive JavaScript pino.child code examples handpicked from public code repositorys.

144
145
146
147
148
149
150
151
152
153
    destination: 1,
    all: true,
    translateTime: true,
  }
},
logger: pino.child({name: loggerConfig.name}),
genReqId: function (req, res) {
  const existingID = req.id ?? req.headers["x-request-id"];
  if (existingID) return existingID;
  let id = randomUUID();
fork icon0
star icon0
watch icon0