1
0
forked from bot/app

feat: 自动向轻雪服务器上报错误信息

This commit is contained in:
2024-03-24 14:43:41 +08:00
parent 5a929d3e99
commit ccef8ca125
4 changed files with 79 additions and 9 deletions

View File

@ -49,10 +49,10 @@ logger_id = logger.add(
level=0,
diagnose=False,
filter=default_filter,
format=get_format(load_from_yaml('config.yml').get("log_level", "INFO")),
format=get_format(config.get("log_level", "INFO")),
)
show_icon = config.get("show_icon", True)
logger.level("DEBUG", color="<blue>", icon=f"*️⃣==DEBUG")
logger.level("INFO", color="<white>", icon=f"===INFO")
logger.level("SUCCESS", color="<green>", icon=f"✅SUCCESS")