Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Log4j automatic compression with FixedWindowRollingPolicy  RSS feed

 
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!