MCPcopy
hub / github.com/fastify/fastify / defaultChildLoggerFactory

Function defaultChildLoggerFactory

lib/logger-factory.js:44–46  ·  view source on GitHub ↗

Default factory to create child logger instance * * @param {import('../fastify.js').FastifyBaseLogger} logger * @param {import('../types/logger.js').Bindings} bindings * @param {import('../types/logger.js').ChildLoggerOptions} opts * * @returns {import('../types/logger.js').FastifyBaseLogger}

(logger, bindings, opts)

Source from the content-addressed store, hash-verified

42 * @returns {import('../types/logger.js').FastifyBaseLogger}
43 */
44function defaultChildLoggerFactory (logger, bindings, opts) {
45 return logger.child(bindings, opts)
46}
47
48/**
49 * Determines if a provided logger object meets the requirements

Callers

nothing calls this directly

Calls 1

childMethod · 0.65

Tested by

no test coverage detected