Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加日志输出到文件方便检查,统一日志格式及配置 #213

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cyb233
Copy link
Contributor

@cyb233 cyb233 commented Dec 16, 2024

更换分支,取代 #204

  • 日志按日期分割,方便检查具体运行记录或用于调试
  • 日志只保留30天,不会产生过多无用日志

cyb233 and others added 2 commits November 28, 2024 20:55
- 增加日志输出到文件方便检查,并略微调整日志格式
- 日志按日期分割,且保留30天
- 在 BiliApi 类的 __check_response 方法中添加了对 API 响应数据的 trace 日志记录,以便于调试和分析 API 请求的返回信息。
- 在 users.yaml 中添加 WRITE_LOG_FILE 配置项
- 根据配置项决定是否写入日志文件
- 支持自定义日志文件路径
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant