-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logger.isLevelEnabled('off')
not functioning as expected
#1362
Comments
Based on my memory, Lines 96 to 104 in cfab25c
|
@lamweili is there any way to achieve what I want? In most of the code we enable some global logging configuration, but in some pieces of code we need to check if |
I don't think there is any way to check at the moment. I think this can be a good feature to have. 🤗 Give me some time, should be easy to implement. Maybe it should return the existing configuration if configured. |
@thernstig, would the new API While I can possibly cache the passed-in configuration and return that, it would not reflect any programmatical changes as they don't go through the same flow. That would be outdated and not an accurate representation of the latest configuration. |
Merging the PR automatically closed this issue. The documentation for the new API is here at PR #1369.
|
@lamweili that is great for my user case at least. Better than before since it did not exist before at all. Thanks 👍 |
Did it resolve your issue? You can close this if it does. Thanks! |
@lamweili it works, thanks! I think the information you added about Another aside is that Docosaurus would have been nice to use :D |
@thernstig, you are right, maybe that should be included in the As for docusaurus, I'm not familiar, you can have the liberty of another PR! 😄 |
@thernstig, in Do you want to close this issue? Or do you have some other needs? |
@lamweili no other needs, I am very happy with your maintenance of the project! 😄 |
I would expect the last statement to print
false
but it printstrue
.The end goal is to do something like this:
The text was updated successfully, but these errors were encountered: