logging.LogRecord asctime aattribute - easily override somehow?
__peter__ at web.de
Wed Mar 29 12:39:59 EDT 2017
Skip Montanaro wrote:
> Short of going into some Formatter creation exercise (which seems like
> overkill to me, and somewhat obscure), is there some way to easily
> change the format of the logging.LogRecord's asctime attribute?
>>> import logging
>>> logging.basicConfig(format="%(asctime)s" + logging.BASIC_FORMAT,
More information about the Python-list