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

Vinay Sajip report at bugs.python.org
Mon Jul 2 06:55:47 EDT 2018


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

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

"People" - you don't claim to speak for *everyone*, right?

basicConfig() takes a format= keyword argument that you can use to specify your required format string. Since you have to call basicConfig() anyway, it seems little hardship to specify the format you want in your call.

Closing as "not a bug", which here is to be interpreted as "not an enhancement that's needed".

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list