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: Add new style formatting to logging.config.fileConfig
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: py.user, vinay.sajip
Priority: normal Keywords:

Created on 2014-03-19 20:21 by py.user, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg214129 - (view) Author: py.user (py.user) * Date: 2014-03-19 20:21
http://docs.python.org/3/howto/logging.html#configuring-logging

"
[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=
"


I tried to make:
format={asctime} - {name} - {levelname} - {message}

and it doesn't work.

In the source, I found this is not implemented.
However, new formatting has more capabilities than old.
msg214198 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2014-03-20 10:49
Though not deprecated, fileConfig() will not be receiving any enhancements (just bug-fixes). It is recommended that users who need more functionality migrate to using dictConfig(), which offers more configuration functionality than fileConfig() - e.g. configuring filters - and dictConfig() does support alternate formatting styles.
History
Date User Action Args
2022-04-11 14:58:00adminsetgithub: 65184
2014-03-20 10:50:03vinay.sajipsetstatus: open -> closed
2014-03-20 10:49:55vinay.sajipsetresolution: wont fix
messages: + msg214198
2014-03-19 23:53:57r.david.murraysetnosy: + vinay.sajip
2014-03-19 20:21:49py.usercreate