Pino: Support injecting serializers via .child()

Created on 27 Jun 2016  路  3Comments  路  Source: pinojs/pino

Currently it is not possible to add serializers in child loggers.

See https://github.com/mcollina/pino/pull/57 as an example of how it could be implemented.

enhancement help wanted

All 3 comments

Quick question, should a serializer added to the child replace the existing ones from the parent or should it be added to the existing ones? (as far as I am aware it is an array). I might be able to work on this today/weekend.

it should be added to the existing ones, but just for that child logger, replacing the old one if it's there.

Perfecto. I'll try work on something today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dunklesToast picture dunklesToast  路  3Comments

grbr picture grbr  路  6Comments

yoshuawuyts picture yoshuawuyts  路  5Comments

cekvenich picture cekvenich  路  6Comments

JamesKyburz picture JamesKyburz  路  7Comments