MCPcopy
hub / github.com/fastify/fastify / customRouteChildLogger

Function customRouteChildLogger

test/route.4.test.js:103–109  ·  view source on GitHub ↗
(logger, bindings, opts, req)

Source from the content-addressed store, hash-verified

101 const fastify = Fastify()
102
103 const customRouteChildLogger = (logger, bindings, opts, req) => {
104 const child = logger.child(bindings, opts)
105 child.customLog = function (message) {
106 t.assert.strictEqual(message, 'custom')
107 }
108 return child
109 }
110
111 fastify.route({
112 method: 'GET',

Callers

nothing calls this directly

Calls 1

childMethod · 0.65

Tested by

no test coverage detected