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