commit | a27a3e8ad7d20dea63ef2d5cb8b6ec7e56c20a89 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Sun Jan 08 16:41:36 2012 -0800 |
committer | Jeff Sharkey <jsharkey@android.com> | Fri Jan 13 15:27:28 2012 -0800 |
tree | a233bcf4a407daa0652fd6229930aaaa348e2f35 | |
parent | 6a78cd85867c5f22e4e82259b81fab46088331ad [diff] |
Introduce FileRotator. Utility that rotates files over time, similar to logrotate. There is a single "active" file, which is periodically rotated into historical files, and eventually deleted entirely. Files are stored under a specific directory with a well-known prefix. Bug: 5386531 Change-Id: I29f821a881247e50ce0f6f73b20bbd020db39e43