mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
Adjust log format
This commit is contained in:
parent
0172eae91e
commit
2caf90646b
@ -11,6 +11,6 @@ import sys
|
|||||||
logger = logging.getLogger('none')
|
logger = logging.getLogger('none')
|
||||||
default_handler = logging.StreamHandler(sys.stdout)
|
default_handler = logging.StreamHandler(sys.stdout)
|
||||||
default_handler.setFormatter(logging.Formatter(
|
default_handler.setFormatter(logging.Formatter(
|
||||||
'[%(asctime)s] %(levelname)s: %(message)s'
|
'[%(asctime)s %(name)s] %(levelname)s: %(message)s'
|
||||||
))
|
))
|
||||||
logger.addHandler(default_handler)
|
logger.addHandler(default_handler)
|
||||||
|
Loading…
Reference in New Issue
Block a user