-
Notifications
You must be signed in to change notification settings - Fork 596
add error log to file #3431
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
Merged
Jiang-Jia-Jun
merged 8 commits into
PaddlePaddle:develop
from
xiaolei373:new_log_config
Aug 20, 2025
Merged
add error log to file #3431
Jiang-Jia-Jun
merged 8 commits into
PaddlePaddle:develop
from
xiaolei373:new_log_config
Aug 20, 2025
+1,399
−33
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Thanks for your contribution! |
eecec02 to
2fb568e
Compare
2fb568e to
cd58ca6
Compare
106cd03 to
f9c760c
Compare
ltd0924
reviewed
Aug 19, 2025
| """ | ||
| 自定义日志格式化器模块 | ||
| 该模块定义了 ColoredFormatter 类,用于在控制台输出带颜色的日志信息, | ||
| 便于开发者在终端中快速识别不同级别的日志。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
增加开源协议
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好滴
sunlei1024
approved these changes
Aug 19, 2025
f9c760c to
9a21950
Compare
9a21950 to
f1b09bf
Compare
f1b09bf to
9cef8b0
Compare
Jiang-Jia-Jun
approved these changes
Aug 20, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1、实现ERROR日志分流到相应的的文件中,便于排查问题
2、ERROR日志延迟打印,只有真正写入ERROR日志时才会创建文件,避免创建过多空日志文件
3、在兼容原有日志使用方式的基础上,新增了通过日志Json配置的方式定义日志处理方式,全局共用相同的logger
4、新日志使用方式会存储最新一小时全量日志和ERROR日志
5、新日志使用方式增加了按天和小时归档的能力