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
Consider not setting level on the colored handler #54
Comments
I agree, I meet the same problem. I expect to see colored logs in all loggers, and allow loggers which level lower than root logger to emit messages. My workaround: coloredlogs.install(**colored_params) # add colored handler to root logger
logging.getLogger().setLevel(logging.WARNING) # reset root logger level
for h in logging.getLogger().handlers:
h.setLevel(logging.NOTSET) # reset colored handler level |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
happy new user of coloredlogs for its out of the box nice feature.
please consider this use case:
I find it a bit counter intuitive. Naively I'd have expected to see my "foo" debug call.
All would be good if
coloredlogs
wouldn't set the level on the actual handler but only on the root logger (or the explicitly passed one otherwise)..wdyt ?
thx.
The text was updated successfully, but these errors were encountered: