If you use Unix cron and zip/gzip or tar can do this job.
If you have a rolling file appender you have an actual server.log and old files stored as server.log.<datetime>, you can zip all stored files with a simple cron job
I use windows but is there any configuration examples/tutorials? can you give me links?
I think you can use the windows 'task planer' for this and a little batch srcipt.
But here you might look for 'windows scripting host' or tutorials of *bat or *cmd script programming.
Perhaps a Windows user with batch programming knowlegde can give you an aswer, BTW you should post which Windows do you use.
You are right but i was interested in if jboss was able to do that without os(to configure some service which will do that)
The logging is delegated to apache log4j (http://logging.apache.org/log4j/1.2/)
AFAIK there is no implementation of a Appender like DailyRollingFileAppender which can compress the archived files.
Because it wil be a drawback during logfile switch and if you write directly with compressing it will be performance relevant.
But you may look for a implementation or implement such behaviour by yourself, maybe with an AsyncFileAppender