Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j automatic compression with FixedWindowRollingPolicy

 
Jan Hoppmann
Ranch Hand
Posts: 147
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic