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
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
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