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
日志文件被覆盖了 #125
Comments
@elvishew 这个问题确实比较怪,而且不是必现的,是否已经遇到过或者在更高版本处理了呢? |
@yjtacx 请问是怎么设置的?暂时没听说过这个问题 |
下面是我的logger的创建方法,然后我新建了两个单例类,主要是为了写入两个不同的文件。
// + '|' + tag |
现象是这样的,比如我的两个日志文件:a.log和b.log内部的日志变成从同一时刻开始了的,之前的很多日志都丢了,而b.log的备份文件还在。 |
@yjtacx 清理策略是怎样的,有没有可能在打开APP时,刚好清理策略生效,旧的日志被清了? |
检查了下,没有自动清理任务,就是new FileSizeBackupStrategy2(BuildConfig.DEBUG ? debugMaxSize : releaseMaxSize, 1) 这个设置,这个我这也很难复现,只是有几个用户复现了,复现的情况基本都是bak.1文件存在,剩余的.log的文件被覆盖重写了。 |
你好,我发现App启动时,偶尔会出现日志文件内容被覆盖掉了,而不是追加。我设置的是最多一个备份文件。这个什么原因呢?
The text was updated successfully, but these errors were encountered: