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.

hide info messages

See original GitHub issue

I tried to find in the documentation how to configure Consola for production, but I couldn’t. Tell me how to turn off the Consola for production and leave it for development and tests?

something like

production: true 

in instance settings

As a result, when node_env is not production logs will not be displayed.Or is there no such setting and you need to make your own wrapper?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
deni5ncommented, Mar 5, 2021

@pi0 Awesome! thank you very much!

1reaction
pi0commented, Mar 5, 2021

You can set CONSOLA_LEVEL=1 environment variable to only show warn and error (or 2 to include log as well). List of all levels: https://github.com/nuxt-contrib/consola/blob/master/src/logLevels.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to stop INFO messages displaying on spark console?
You set disable the Logs by setting its level to OFF as follows: Logger.getLogger("org ...
Read more >
Spark - Stop INFO & DEBUG message logging to console?
Now, Let's see how to stop/disable/turn off logging DEBUG and INFO messages to the console or to a log file. Using sparkContext.setLogLevel() ...
Read more >
How to control log settings in Spark and stop INFO messages?
How to control log settings in Spark and stop INFO messages? · Here is an example of log messages that you might see...
Read more >
Suppress Info Messages - Pwdatools new
In order to suppress warning messages, set logging level to 'error'. After executring this line of code, any warning or info messages will...
Read more >
How to hide info messages when adding role - ServiceNow
Solved: Hello Team, Is it possible to hide info messages displayed when adding roles. currently when we add a role to a particular...
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