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.

Enhancement: clean-up logLevel/disableLogs

See original GitHub issue

What version of Wrangler are you using?

2.1.4

What operating system are you using?

Mac

Describe the Bug

We don’t need to prop-drill.

  • LOGGER_LEVELS in logger.ts needs two new options: noRoutes: -2 and none: -1
  • doLog’s messageLevel type becomes Exclude<LoggerLevel, "none" | "noRoutes">,
  • formatMessage’s level type becomes Exclude<LoggerLevel, "none" | "noRoutes">

When logLevel comes in via CLI, set the global logger’s logLevel.

When we disable Miniflare’s route logger, read the global logger’s logLevel, and use that instead of disableLogs

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
fubhycommented, Sep 20, 2022

Sure thing. Sorry for derailing this one 😉

0reactions
JacobMGEvanscommented, Sep 20, 2022

Sure thing. Sorry for derailing this one 😉

No need to apologize, we appreciate all involvement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Improvement: Reduce the amount of logging #269 - GitHub
Solution wise, first is to strip out all but the most necessary logging calls in the repository. Then it's either not to commit...
Read more >
Configure Logging Options - VMware Docs
In the vSphere Client, navigate to the vCenter Server instance. · Select the Configure tab. · Under Settings, select General. · Click Edit....
Read more >
Manage automatic logging | New Relic Documentation
You can disable (or re-enable) automatic log forwarding across your entire account via the APM log settings UI or the API. You can...
Read more >
Enable/Disable Logging In Mule 4 | Mulesoft Tutorials
You create a project in anypoint studio log4j.xml file automatically created which is useful to change the log level or to enable/disable the...
Read more >
Logging settings in Kibana - Elastic
Options are all , fatal , error , warn , info , debug , trace , off . The all and off levels...
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