mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
update nicelogger
This commit is contained in:
parent
954068b000
commit
eaddcd33ba
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,8 @@ A Tornado-inspired logging formatter, with displayed time with millisecond accur
|
|||
FYI: pyftpdlib also has a Tornado-style logger.
|
||||
'''
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import time
|
||||
import logging
|
||||
|
@ -55,6 +57,7 @@ class TornadoLogFormatter(logging.Formatter):
|
|||
'filename', 'exc_info', 'exc_text', 'created', 'funcName',
|
||||
'processName', 'process', 'msecs', 'relativeCreated', 'thread',
|
||||
'threadName', 'name', 'levelno', 'msg', 'pathname', 'stack_info',
|
||||
'taskName',
|
||||
})
|
||||
|
||||
if record.exc_info:
|
||||
|
|
Loading…
Add table
Reference in a new issue