hyperlog-android icon indicating copy to clipboard operation
hyperlog-android copied to clipboard

Allow size limit rather than time limit

Open deano2390 opened this issue 7 years ago • 2 comments

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.

deano2390 avatar Sep 17 '18 10:09 deano2390

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.

AnthonyBillon avatar Apr 02 '19 13:04 AnthonyBillon

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.

deano2390 avatar Apr 08 '19 10:04 deano2390