This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: logging.config: '.' (dot) as a key is not documented
Type: enhancement Stage:
Components: Documentation Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Yuta Okamoto, docs@python, vinay.sajip
Priority: normal Keywords:

Created on 2020-03-09 15:59 by Yuta Okamoto, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg363744 - (view) Author: Yuta Okamoto (Yuta Okamoto) Date: 2020-03-09 15:59
I noticed that Configurators in logging.config module accepts '.' (dot) as a key to fill attributes for filters, formatters, and handlers directly like the following:

handlers:
    syslog:
        class: logging.handlers.SysLogHandler
        .:
            ident: 'app-name: '

https://github.com/python/cpython/blob/46abfc1416ff8e450999611ef8f231ff871ab133/Lib/logging/config.py#L742

But it seems this functionality is not documented in https://docs.python.org/3/library/logging.config.html
History
Date User Action Args
2022-04-11 14:59:27adminsetgithub: 84095
2020-03-09 16:02:04xtreaksetnosy: + vinay.sajip
2020-03-09 15:59:34Yuta Okamotocreate