[issue34107] root.warning('msg') output format modified by logging.warning('msg')
Vinay Sajip
report at bugs.python.org
Fri Jul 13 05:09:50 EDT 2018
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
This behaviour is as expected. If no handlers are configured for logging, an internal "handler of last resort" is used, with just the message output. See:
https://docs.python.org/3/howto/logging.html#what-happens-if-no-configuration-is-provided
If you call logging.warning(...), and if no handlers are configured, then basicConfig() is internally called to set up a handler with a basic format string. See:
https://docs.python.org/3/library/logging.html#logging.log
So, what you've described is as it should be.
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34107>
_______________________________________
More information about the Python-bugs-list
mailing list