mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-18 09:25:46 +08:00
10 lines
247 B
Python
10 lines
247 B
Python
import logging
|
|
import sys
|
|
|
|
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)
|