We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你好,可以自动清除日志吗,或者能循环记录,避免日志文件占用空间无限增长,setLoggerReserveTime似乎,只对本次运行的进程有效,程序重新启动,并不检查过往的日志文件是否已经超过保留时间。请问还有其他解决方法吗
The text was updated successfully, but these errors were encountered:
//-daystart从当天开始的时刻算起, -mtime 文件的创建时间 string cmdStr = "find ./logs/* -daystart -mtime +7 -delete";//7天 myprintf("cmd:[%s]\n", cmdStr.c_str()); system(cmdStr.c_str());
每天执行一次,删除超过7天的。你看这个怎么样。
Sorry, something went wrong.
//-daystart从当天开始的时刻算起, -mtime 文件的创建时间 string cmdStr = "find ./logs/* -daystart -mtime +7 -delete";//7天 myprintf("cmd:[%s]\n", cmdStr.c_str()); system(cmdStr.c_str()); 每天执行一次,删除超过7天的。你看这个怎么样。
感谢你的回答,自己处理是可以实现,如果库里面有支持,就直接用了
No branches or pull requests
你好,可以自动清除日志吗,或者能循环记录,避免日志文件占用空间无限增长,setLoggerReserveTime似乎,只对本次运行的进程有效,程序重新启动,并不检查过往的日志文件是否已经超过保留时间。请问还有其他解决方法吗
The text was updated successfully, but these errors were encountered: