-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
日志输出到文件时,可以考虑两点建议 #112
Comments
挺好的建议哈,你可以试着加一下? |
我自己这边改了一版
新增 函数
linux 环境下,修改该函数
2 文件生成时间判断
|
关于elog_file_init()函数是应该放在elog_port.c下的elog_port_init()函数中调用吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
日志输出到文件时,建议如下
1 提供用户接口,指定输出文件路径+文件名,如果为NULL,则按照默认文件名保存
2 如果用户配置,可以按照天保存到文件中,每天保存为一个文件,文件名可以是log_YYYY_MM_DD.log的形式
The text was updated successfully, but these errors were encountered: