We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can't change sys.stdout level in different file. #505, How to create new object logger.
The text was updated successfully, but these errors were encountered:
Could you please explain your problem further?
Keep in mind that each of your file share the same logger. They all write messages to the same set of handlers you configured.
logger
Therefore, if you want to use different levels for different file, you can use a filter like so:
filter
levels = { "": "DEBUG", # Default "module_a": "INFO", "module_b": "WARNING", } logger.remove() # Remove default handler. logger.add(sys.stderr, filter=levels)
If you need to create truly independent loggers, take a look a this page of the documentation: Creating independent loggers with separate set of handlers.
Sorry, something went wrong.
@zhangchunsheng Can this be closed?
No branches or pull requests
Can't change sys.stdout level in different file. #505, How to create new object logger.
The text was updated successfully, but these errors were encountered: