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.

Title: Formatter exception when using logging.config.fileConfig
Type: Stage: patch review
Components: Versions: Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: mirii1994, vinay.sajip
Priority: normal Keywords: patch

Created on 2020-05-07 08:22 by mirii1994, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 19991 open mirii1994, 2020-05-08 08:07
Messages (1)
msg368326 - (view) Author: (mirii1994) * Date: 2020-05-07 08:22
In Python 3.8, a "validate" key was added to the Formatter, with a default value of True (
When using the "logging.config.fileConfig()" method, there is no way to set the "validate" field to "False" if needed, thus making the code to throw an exception.
In "logging.config.dictConfig()" it is possible, since there is an "if" statement that checks the validate field was given a value in the configuration.
It would be useful to add the option to set the "validate" field through "logging.config.fileConfig" like it is on "logging.config.dictConfig", since it's breaking the code for many users who want to upgrade to python 3.8.
Date User Action Args
2022-04-11 14:59:30adminsetgithub: 84724
2020-05-08 21:40:27terry.reedysetnosy: + vinay.sajip
2020-05-08 08:07:36mirii1994setkeywords: + patch
stage: patch review
pull_requests: + pull_request19307
2020-05-07 08:22:24mirii1994create