aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j automatic compression with FixedWindowRollingPolicy" Watch "Log4j automatic compression with FixedWindowRollingPolicy" New topic
Author

Log4j automatic compression with FixedWindowRollingPolicy

Jan Hoppmann
Ranch Hand

Joined: Jul 19, 2010
Posts: 142

Hey!

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.
 
 
subject: Log4j automatic compression with FixedWindowRollingPolicy
 
Similar Threads
log4j problem: Multiple RollingFileAppender in an application
JAXB with log.xml
Log4j rolling policy must be declared?
Tomcat log4j dosn't roll files as supposed to
how to disable the log