question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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 Screenshot 2021-12-21 at 21 50 17

However whenever running my service I continue getting this error. Screenshot 2021-12-21 at 21 51 32

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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Lucky38icommented, Dec 24, 2021

@Lucky38i This lib doesn’t have deps, only peer deps. You can update pino-http on your own with proper pino version

Thanks, appreciate the quick replies happy holidays

0reactions
iamoleggacommented, Dec 24, 2021

@Lucky38i This lib doesn’t have deps, only peer deps. You can update pino-http on your own with proper pino version

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Properly Load & Secure Equipment for Transport
Ask The Experts: How to Properly Load & Secure Equipment for Transport ... straps, chains and warning lights for your transport strategy.
Read more >
How to Safely Load and Transport Heavy Equipment
Do a final ground inspection of all equipment, the transport vehicle, anchor points, and tools before sending everyone on their way. Document the...
Read more >
How to Transport Gas Cylinders Safely - USAsafety.com
Use cylinder dollies or other mechanical lifting devices to move the cylinders to the vehicle. Never drop the cylinders or allow things to...
Read more >
How to Comply with Federal Hazardous Materials Regulations
This document provides only a general overview of the requirements for transporting hazardous materials by highway.
Read more >
Questions and Answers for Shipping Live Animals by Air - IATA
The carrier is responsible for the welfare and safe transport ... must take a great deal of care in ensuring that they have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found