MCPcopy
hub / github.com/fastify/fastify / childLoggerFactory

Function childLoggerFactory

test/types/instance.tst.ts:292–300  ·  view source on GitHub ↗
(
  this: FastifyInstance,
  logger: FastifyBaseLogger,
  bindings: Bindings,
  opts: ChildLoggerOptions,
  req: RawRequestDefaultExpression
)

Source from the content-addressed store, hash-verified

290).type.toBe<FastifyInstance>()
291
292function childLoggerFactory (
293 this: FastifyInstance,
294 logger: FastifyBaseLogger,
295 bindings: Bindings,
296 opts: ChildLoggerOptions,
297 req: RawRequestDefaultExpression
298) {
299 return logger.child(bindings, opts)
300}
301server.setChildLoggerFactory(childLoggerFactory)
302server.setChildLoggerFactory(server.childLoggerFactory)
303

Callers

nothing calls this directly

Calls 1

childMethod · 0.65

Tested by

no test coverage detected