logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hrishi_mil <hrishikesh.triv...@mobileinternet.co.in>
Subject Daily Rolling and Compression with Numeric suffixes to the rolled file name
Date Thu, 24 Mar 2011 09:38:10 GMT

Is it possible to achieve following using any of the existing log4j releases
?

* Log files should be rolled and compressed daily at midnight.
* The rolled files should have names like debug.1.gz, debug.2.gz and so on
where debug.1.gz contains the latest logs. So here in case of daily rolling,
debug.1.gz should contain yesterday's log.

If this requires doing some modifications to existing log4j classes, can
anyone suggest what class should i modify and what changes are required ?

Thanks in advance,
Hrishikesh

-- 
View this message in context: http://old.nabble.com/Daily-Rolling-and-Compression-with-Numeric-suffixes-to-the-rolled-file-name-tp31227330p31227330.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message