[QUESTION] How to properly use transport
See original GitHub issue[x] I’ve read the docs of nestjs-pino
[x] I’ve read the docs of pino
[x] I couldn’t find the same question about nestjs-pino
Question
So from the looks of it, multiple targets within a transport is the ideal way to get your logged outputted to multiple areas, say STDOUT and a file. I’ve been attempting to do this all day scanning the docs of this package and the pino docs as-well however, I keep ending up with the same issue.
Below is how I’m configuring the parameters of the LoggerModule
However whenever running my service I continue getting this error.
Maybe something is going completetly over my head here. It’d be great if you guys could help me out.
Please mention other relevant information such as Node.js version and Operating System.
MacOS Big Sur 11.6.1
node v16.1.0
pino-http v6.5.0
pino-pretty v7.3.0
nestjs-pino 2.4.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top GitHub Comments
Thanks, appreciate the quick replies happy holidays
@Lucky38i This lib doesn’t have deps, only peer deps. You can update
pino-http
on your own with properpino
version