posted 13 years ago
I am using RollingFileAppender and there is a scenario like whenever the size of the log file reaches to 3MB i want to create a back up file and want to compress that backup file at the same time.
Compressing the file can be done using zipoutputstream however not sure how to check if the file has reached to max limit and initiate file compression.
Can someone please let me know how this can be achieved. And how can i use rollover method and subappend for this purpose as currently i am not sure how and when these methods are called.