How to set timestamps on GMT/UTC on Python logging?
logging.Formatter.converter = time.gmtime
(documented in the docstring of logging.Formatter.formatTime
)
From the python 3 docs:
import timeclass UTCFormatter(logging.Formatter): converter = time.gmtime