[issue34356] Add support for args and kwargs in logging.conf

2018-08-08 Thread Xavier Hardy


New submission from Xavier Hardy :

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 
<https://bugs.python.org/issue34356>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34356] Add support for args and kwargs in logging.conf

2018-08-13 Thread Xavier Hardy


Change by Xavier Hardy :


--
keywords: +patch
pull_requests: +8234
stage:  -> patch review

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