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.

Trace log is not working [BUG]

See original GitHub issue

What is the current behavior?

I am using PinoLogger in my project. Everything works fine except logs ‘trace’ and ‘debug’.

When I do logger.info, logger.warn or logger.error I get all that logs in console, but if I want to use other methods it just doesn’t print at all.

My module:

LoggerModule.forRoot({
      useExisting: true,
      pinoHttp: {
        ...ecsFormat(),
        prettyPrint: {
          colorize: true,
          levelFirst: true,
          singleLine: true,
        },
      },
    }),

What is the expected behavior?

I do expect printed logs with methods: trace and debug

Please mention other relevant information such as Node.js version and Operating System. Node - v12.6.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
iamoleggacommented, May 16, 2021

Thanks, need time to check this

0reactions
iamoleggacommented, Sep 30, 2022

@prufrock123 please open a new issue with the minimal example repo

Read more comments on GitHub >

github_iconTop Results From Across the Web

573748 – trace to log not working on windows? - Bugs - Eclipse
After enabling General/Tracing (and some options of course) it seems that no trace-file is generated. If I switch "Output to standard output stream"...
Read more >
Cannot see Trace logs when loglevel set to Trace #937 - GitHub
When debugging locally with core tools, I can't seem to get trace messages to appear in the console. Not sure if this is...
Read more >
LDAP backend should support python-ldap trace logging
The information in the trace log is crucial when trying to diagnose LDAP problems, especially connection problems.
Read more >
CSCvu78110 - CUIC Log and trace setting issues - Cisco Bug
Steps to reproduce: 1. Login to OAMP in CUIC or Serviceability admin in CCX. 2. Go to Log and trace setting page for...
Read more >
Plugin Trace Log not working on Dynamics CRM 2016 On...
I have set "Enable logging to plug-in trace log" to "All" and I have verified that the setting is updated in the organization...
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