[New-bugs-announce] [issue39914] logging.config: '.' (dot) as a key is not documented

Yuta Okamoto report at bugs.python.org
Mon Mar 9 11:59:34 EDT 2020


New submission from Yuta Okamoto <okapies at gmail.com>:

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

----------
assignee: docs at python
components: Documentation
messages: 363744
nosy: Yuta Okamoto, docs at python
priority: normal
severity: normal
status: open
title: logging.config: '.' (dot) as a key is not documented
type: enhancement
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list