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] reuse pino instance from FastifyAdapter

See original GitHub issue

Hi,

would it be possible to reuse the instance of pino from the FastifyAdapter?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
iamoleggacommented, Oct 31, 2019

@vabatta see example in this test

0reactions
iamoleggacommented, Oct 31, 2019

shipped in v0.6.0

you can use property useExisting: true in options object

Read more comments on GitHub >

github_iconTop Results From Across the Web

nestjs-pino-fastify - npm
Pino logger for NestJS for Fastify. Latest version: 2.2.6, last published: a year ago. Start using nestjs-pino-fastify in your project by ...
Read more >
A Complete Guide to Pino Logging in Node.js - Better Stack
Learn how to start logging with Pino in Node.js and go from basics to best practices in no time.
Read more >
How can i use custom logger in fastify? - Stack Overflow
I tried to understand how to register my logger with this simple example below, but fastify always use Pino. index.js const log =...
Read more >
Fastify served with a refreshing Pino featuring Matteo Collina ...
npm allows the same dependency to be present thousands of times, at all the possible versions, which means that we have solved the...
Read more >
Logging - Fastify
You can trigger new logs outside route handlers by using the Pino instance from the Fastify instance: fastify.log.info('Something important happened!');.
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