Skip to content
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

Feature Request - Logger.getLevel #46

Closed
BenjaminVadant opened this issue Feb 7, 2017 · 0 comments
Closed

Feature Request - Logger.getLevel #46

BenjaminVadant opened this issue Feb 7, 2017 · 0 comments

Comments

@BenjaminVadant
Copy link
Contributor

BenjaminVadant commented Feb 7, 2017

Hi,

it would be nice if there was a method that returns the current level of the logger.

This would allow to change temporarily the level and then get back to a previous value.

For example :

let level = Logger.getLevel()
Logger.setLevel(Logger.OFF)
//do stuff you don't want to log
Logger.setLevel(level) //get back to the previous level

I have added this functionnality (see my pull request)

Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants