import logging import time LOG_FORMAT = ( "%(asctime)s.%(msecs)03dZ " "[%(levelname)s] " "%(name)s: " "%(message)s" ) LOG_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S" class UTCFormatter(logging.Formatter): converter = staticmethod(time.gmtime)