(logger, bindings, opts, req)
| 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', |