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

2018-07-02 Thread Vinay Sajip
Vinay Sajip 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

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

2018-07-02 Thread Eric V. Smith
Eric V. Smith added the comment: Unfortunately, I don't see how we can do this without breaking code that assumes the default log format doesn't have the timestamp in it. In particular, I'm thinking of external log file parsers. -- nosy: +eric.smith, vinay.sajip

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

2018-07-02 Thread Leon H.
New submission from Leon H. : 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 BASI