update nicelogger

This commit is contained in:
lilydjwg 2024-04-28 16:30:36 +08:00
parent 954068b000
commit eaddcd33ba

View file

@ -4,6 +4,8 @@ A Tornado-inspired logging formatter, with displayed time with millisecond accur
FYI: pyftpdlib also has a Tornado-style logger. FYI: pyftpdlib also has a Tornado-style logger.
''' '''
from __future__ import annotations
import sys import sys
import time import time
import logging import logging
@ -55,6 +57,7 @@ class TornadoLogFormatter(logging.Formatter):
'filename', 'exc_info', 'exc_text', 'created', 'funcName', 'filename', 'exc_info', 'exc_text', 'created', 'funcName',
'processName', 'process', 'msecs', 'relativeCreated', 'thread', 'processName', 'process', 'msecs', 'relativeCreated', 'thread',
'threadName', 'name', 'levelno', 'msg', 'pathname', 'stack_info', 'threadName', 'name', 'levelno', 'msg', 'pathname', 'stack_info',
'taskName',
}) })
if record.exc_info: if record.exc_info: