mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 07:28:10 +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)
|