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

LogUtils.getLog2FileConfig().getLogFile() 调用了但是文件没有写入到手机也没有报错 #76

Open
yuanjie111 opened this issue Dec 10, 2021 · 4 comments

Comments

@yuanjie111
Copy link

LogUtils.getLog2FileConfig().getLogFile() 调用了但是文件没有写入到手机也没有报错
image
image

@pengwei1024
Copy link
Owner

需要重启下 app 才能在文件看到,因为 mmap 是不会立即落盘的,也可以主动刷新日志

@yuanjie111
Copy link
Author

主动刷新是这条命令吗?我已经调用了还是没有看到日志
image

@pengwei1024
Copy link
Owner

一、杀掉重启 app 能看到日志文件吗?
二、试试改成 flushsync 试试呢

@yuanjie111
Copy link
Author

解决了,是文件路径没有写入权限;换了个路径就好了,但是为啥没权限也没有报错呢;还有想问一下这个有清日志文件的功能吗?

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

No branches or pull requests

2 participants