-
1. JBoss As 4.2.3 Automatically compression of log files
wdfink Mar 20, 2011 6:46 AM (in response to dato.java)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
-
2. JBoss As 4.2.3 Automatically compression of log files
dato.java Mar 20, 2011 6:55 AM (in response to wdfink)I use windows but is there any configuration examples/tutorials? can you give me links?
-
3. JBoss As 4.2.3 Automatically compression of log files
wdfink Mar 20, 2011 7:32 AM (in response to dato.java)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.
-
4. JBoss As 4.2.3 Automatically compression of log files
dato.java Mar 20, 2011 7:37 AM (in response to wdfink)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)
-
5. JBoss As 4.2.3 Automatically compression of log files
wdfink Mar 20, 2011 8:30 AM (in response to dato.java)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