(logger, bindings, opts, req)
| 9 | const fastify = Fastify() |
| 10 | |
| 11 | const customRouteChildLogger = (logger, bindings, opts, req) => { |
| 12 | const child = logger.child(bindings, opts) |
| 13 | child.customLog = function (message) { |
| 14 | t.assert.strictEqual(message, 'custom') |
| 15 | } |
| 16 | return child |
| 17 | } |
| 18 | |
| 19 | fastify.route({ |
| 20 | method: 'GET', |