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.

Change logLevel at runtime

See original GitHub issue

It doesn’t appear that there is an options object for changing the global configuration of Vue.$log’s logLevel. I would like to make it a user-defined option which won’t work without that. Any ideas? Or would you accept a PR with that ability?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
justinkamescommented, Apr 12, 2019

I’ve been very busy lately. Apologies. I’ll review the PR of @tuvokki / implement this feature asap.

5reactions
erodewaldcommented, Sep 7, 2018

@justinkames I’ve seen other loggers that allow you to modify the “log level” at runtime. It’s fine if you disagree with the validity of the use case, I’ll just try to explain what I would use it for and if you’re interested then we can talk about it more.

  1. App initializes with logLevel = “fatal” as a default for everybody
  2. Power user / developer wants to see more log output
  3. App has a settings panel where they can lower the logLevel threshold so they see more logging
  4. Power user changes the logLevel setting, it immediately starts logging output that was previously below the “error” threshold.

The problem I’m perceiving, is that you can only configure those settings upon initialization when you pass it the config object. Can that be done after initialization? If it can be, this issue can be closed.

Thanks for reading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Ways to Change Log Levels at Runtime
Merely select the logger and change the log level in just click of a button. As highlighted in the figure it will change...
Read more >
Changing the Logging Level at the Runtime for a Spring ...
In this tutorial, we're going to look at ways we can change the logging level of a Spring Boot application at runtime. As...
Read more >
Dynamically Changing log4j log level - java
As described by Aaron, you can set the log level programmatically. You can implement it in your application in the way you would...
Read more >
Change Log Level At Runtime in Logback
This Q&A explains how to change logger level dynamically at runtime via RESTful API for your Java application when using Logback.
Read more >
How to change the log level at runtime in Fastify
You may want to change the log level at runtime by updating the request.log ! ... In the code example above, we are...
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