[New-bugs-announce] [issue34020] Add '%(asctime)s' into default BASIC_FORMAT in logging module

Leon H. report at bugs.python.org
Mon Jul 2 06:04:44 EDT 2018


New submission from Leon H. <leon0824 at gmail.com>:

Current BASIC_FORMAT:
BASIC_FORMAT = "%(levelname)s:%(name)s:%(message)s"

The first thing people do is set the format to '%(asctime)s:%(levelname)s:%(name)s:%(message)s' or like after importing logging module.

Could we put the '%(asctime)s' into the default BASIC_FORMAT setting and save everyone's time?

----------
components: Library (Lib)
messages: 320864
nosy: Leon H.
priority: normal
severity: normal
status: open
title: Add '%(asctime)s' into default BASIC_FORMAT in logging module
type: enhancement
versions: Python 3.8

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


More information about the New-bugs-announce mailing list