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
logging configurators ignoring documented options #65402
Comments
2.7's logging.config.DictConfig does not respect the "class" option, but fileConfig does. The default branch logging.config has the same problem in DictConfig, but also lacks "style" support in fileConfig. |
2.7's logging.config.DictConfig does not respect the "class" option, but fileConfig does. The default branch logging.config has the same problem in DictConfig, but also lacks "style" support in fileConfig. |
I'm not sure I can accept the change in 2.7, because it is technically a new feature and would mean that configs would not be treated the same way in all 2.7.x versions failing in some and not in others. You can get the equivalent behaviour using '()' rather than 'class', and the 'class' keyword is only mentioned in the docs against Handlers, not Formatters. The patch for the default branch looks OK. Thanks! |
New changeset 2d33cbf02522 by Vinay Sajip in branch 'default': |
I agree about the 2.7 branch, I did that one off the top of my head after struggling with backporting the code to 2.7. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: