posted 13 years ago
The just-closed log file, you would want it compressed immediately? Then you would write a subclass of RollingFileAppender (or whichever class satisifies your requirements except for compression) and insert code to do the compression.
Personally I don't compress my old log files for a week. Somebody might want to look at them, after all, and why make it inconvenient for them?