Use logging w/ RotatingFileHandler
Don't use the logging system - DIY!
Change to least-recently-used for cache eviction.
Parameterize the log size and cache size.
Add support to read compressed / rotated input.