mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
12 lines
306 B
Python
12 lines
306 B
Python
|
#!/usr/bin/env python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
import sys
|
||
|
import logging
|
||
|
|
||
|
logger = logging.getLogger("nonebot")
|
||
|
default_handler = logging.StreamHandler(sys.stdout)
|
||
|
default_handler.setFormatter(
|
||
|
logging.Formatter("[%(asctime)s %(name)s] %(levelname)s: %(message)s"))
|
||
|
logger.addHandler(default_handler)
|