mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
Wow
This commit is contained in:
9
none/log.py
Normal file
9
none/log.py
Normal file
@ -0,0 +1,9 @@
|
||||
import sys
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger('none')
|
||||
default_handler = logging.StreamHandler(sys.stdout)
|
||||
default_handler.setFormatter(logging.Formatter(
|
||||
'[%(asctime)s] %(levelname)s: %(message)s'
|
||||
))
|
||||
logger.addHandler(default_handler)
|
Reference in New Issue
Block a user