Issue 20985: Add new style formatting to logging.config.fileConfig (original) (raw)

Issue20985

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:00 admin set github: 65184
2014-03-20 10:50:03 vinay.sajip set status: open -> closed
2014-03-20 10:49:55 vinay.sajip set resolution: wont fixmessages: +
2014-03-19 23:53:57 r.david.murray set nosy: + vinay.sajip
2014-03-19 20:21:49 py.user create