Mark Dickinson <dicki...@gmail.com> added the comment:

The behaviour is long-standing and documented, in the note just under this 
entry: 
https://docs.python.org/3/library/logging.html?highlight=logging#logging.log

But I do agree that it's surprising and (at least for me) undesirable 
behaviour, in that it makes it way too easy to accidentally configure logging 
in library code, which is a no-no according to most logging "best practices" 
advice. (Applications do logging configuration; libraries should usually 
confine themselves to creating loggers and emitting log messages.)

But I suspect it would be rather hard to change now.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to