[New-bugs-announce] [issue34356] Add support for args and kwargs in logging.conf

Xavier Hardy report at bugs.python.org
Wed Aug 8 04:02:58 EDT 2018


New submission from Xavier Hardy <hardyxavier at gmail.com>:

The behavior of formatters and handlers in logging.conf files is inconsistent.

With handlers, it is possible to add custom (keyword and non-keyword) arguments, but it is not possible for formatters (only class, format, datefmt, style).

https://github.com/python/cpython/blob/master/Lib/logging/config.py#L112
https://github.com/python/cpython/blob/master/Lib/logging/config.py#L141

I'll try to submit a pull request as soon as possible.

----------
messages: 323269
nosy: xavier.hardy
priority: normal
severity: normal
status: open
title: Add support for args and kwargs in logging.conf
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

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


More information about the New-bugs-announce mailing list