nonebot2/none/log.py
Richard Chien 89788474d6 Wow
2018-06-27 22:50:01 +08:00

10 lines
247 B
Python

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)