nonebot2/none/log.py

10 lines
247 B
Python
Raw Normal View History

2018-06-27 22:05:12 +08:00
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)