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

Allow size limit rather than time limit #17

Open
deano2390 opened this issue Sep 17, 2018 · 2 comments
Open

Allow size limit rather than time limit #17

deano2390 opened this issue Sep 17, 2018 · 2 comments

Comments

@deano2390
Copy link

Currently the logs are cleared after an expiry time (default of 7 days).

I'd be more interested in restricting the total disk consumption rather than some arbitrary time limit.

@AnthonyBillon
Copy link

It's complicated on Android since the logs are stored in an embded SQLite database on the device,
Because the database is storing only the log table, you can use page_size and page_count to compute an estimated size of the stored logs on the device.

@deano2390
Copy link
Author

Isn't a SQLite DB just stored as a file? If so then you could just look at the size of that file to determine how much disk is being consumed by the DB.

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