17 lines
258 B
Python
17 lines
258 B
Python
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)
|