This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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.
 
Have you checked out Aspose?
 
subject: Log4j automatic compression with FixedWindowRollingPolicy
 
It's not a secret anymore!