File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 147

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.
 
Consider Paul's rocket mass heater.
 
subject: Log4j automatic compression with FixedWindowRollingPolicy