Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Other Open Source Projects and the fly likes Log4j automatic compression with FixedWindowRollingPolicy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j automatic compression with FixedWindowRollingPolicy" Watch "Log4j automatic compression with FixedWindowRollingPolicy" New topic

Log4j automatic compression with FixedWindowRollingPolicy

Jan Hoppmann
Ranch Hand

Joined: Jul 19, 2010
Posts: 142


I tried to have my log files automatically compressed while using FixedWindowRollingPolicy and SizeBasedTriggeringPolicy, but all I get are .zip-files that are just plain text with a zip extension.

My log4j.xml logs like this:

Is there any way to do this using build in classes or do I have to write my own appender?

Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
I agree. Here's the link:
subject: Log4j automatic compression with FixedWindowRollingPolicy
Similar Threads
JAXB with log.xml
Tomcat log4j dosn't roll files as supposed to
Log4j rolling policy must be declared?
how to disable the log
log4j problem: Multiple RollingFileAppender in an application