This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
How can I use the same instance of pino in and out of express? #6
Comments
Currently there is not. The reason is that pino currently does not support injecting serializers in live instance or child loggers. PR? :) Or we'll get it done asap! |
Ah that makes sense! Thanks @mcollina ! I need to get something out the door right now for a client but will attempt to come back to this tomorrow or wed :) unless you get there first :) Thanks for the quick reply. |
See pinojs/pino#66 |
So the way I did it in |
yes it will. It's a bit undocumented, and not API-compatible with Bunyan. |
Fixed in v1.1.0. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Either its too early in my day or I can't see a way of say creating a pino instance and then using that within this library.
The text was updated successfully, but these errors were encountered: