[issue39540] Logging docs don't address the creation of multiple loggers when a hierarchy is provided

Vinay Sajip report at bugs.python.org
Tue Feb 4 02:19:18 EST 2020


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

That's an internal detail. In fact loggers aren't created for all loggers in the hierarchy - PlaceHolder objects are created internally for hierarchy ancestors, and converted to loggers if needed. The printout from your linked Stack Overflow question shows this.

This is not documented because it's internal implementation detail. How the dotted-name hierarchy works is documented.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39540>
_______________________________________


More information about the Python-bugs-list mailing list