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.

Global log disable

See original GitHub issue

Is your feature request related to a problem? Please describe. I’m incorporating signale into a project, and could not find an easy way to configure signale to be globally disabled in tests, across all files and scopes.

Describe the solution you’d like

signale.config({
    disable: process.env.NODE_ENV === 'test'
})

Please let me know if there’s a way to do this already and whether I can start working on this. Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
klaudiosinanicommented, Jun 10, 2018

Nice! Once the feature is added, it will be super easy to utilize it, as it will be reduced to just a single option;

signale.config({disable: true});
// and maybe
signale.disable();
signale.enable();

just as you initially described. This will be the last addition before we hit 1.2.0 : )

0reactions
rsifycommented, Jun 10, 2018

Sweet, looking forward to it!

On 10 Jun 2018, at 17:07, Klaus Sinani notifications@github.com wrote:

Nice! Once the feature is added, it will be super easy to utilize it, as it will be reduced to just a single option;

signale.config({disable: true}); just as you initially described. This will be the last addition before we hit 1.2.0 : )

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/klauscfhq/signale/issues/41#issuecomment-396056377, or mute the thread https://github.com/notifications/unsubscribe-auth/AGw1DzChWcgUJXd59_tfR0qX8wnUlk4gks5t7TY3gaJpZM4UhtAi.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I disable logging while running unit tests in Python ...
This will disable logging globally in the unit test suite. # tests/unit/__init__.py import logging logging.disable(logging.CRITICAL).
Read more >
How to disable logging from imported modules in Python?
To disable logging from imported modules in Python we need to use the getLogger() function. The getLogger() function. The name of the logger...
Read more >
Global Protect Disable Reason - LIVEcommunity - 250535
Solved: Global Protect Client is setup so that users can disable VPN however they need to input a reason why they disabled the...
Read more >
Enable or disable General Log for sql query in MySQL.
General_log system variable controls logging to the general query log for the selected log destinations. General_log value 0 for disable or 1 ...
Read more >
MySQL Disable Binary Logging: The Complete Guide - Learn
This article is all about MySQL Disable Binary Logging. Binary Logging stores the Database changes in files called Binary Logs.
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