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

2020-02-19 Thread Vinay Sajip


Change by Vinay Sajip :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-02-03 Thread Vinay Sajip


Vinay Sajip  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-02-03 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-02-03 Thread Alexander McFarlane


New submission from Alexander McFarlane :

If `logger_name` is a hierarchy format (e.g. `logger_name = 'parent.child'`) 
and the logger name `'parent'` has not been created, the function call 
`logging.getLogger(logger_name)` will create all loggers in the hierarchy (in 
this instance two loggers, `'parent'` and `'parent.child'` will be created)

This is not documented anywhere in the logging documentation. Suggest that this 
is detailed under `logging.getLogger`

More info...
https://stackoverflow.com/q/59990300/4013571

--
assignee: docs@python
components: Documentation
messages: 361287
nosy: docs@python, flipdazed
priority: normal
severity: normal
status: open
title: Logging docs don't address the creation of multiple loggers when a 
hierarchy is provided
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com