Take a look at org.apache.log4j.rolling.RollingFileAppender which has pluggable 
rolling and file naming strategies.

http://logging.apache.org/log4j/1.2/apidocs/index.html

For a little ancient history, log4j 1.2 has two classes named 
RollingFileAppender, the original in org.apache.log4j and a next generation 
(aka 2005 or so) implementation from the abandoned log4j 1.3 effort in 
org.apache.log4j.rolling. The o.a.l.r.RFA still has its problems, but is an 
improvement over o.a.l.RFA.


On Sep 20, 2011, at 9:45 AM, Stefan Bodewig wrote:

> On 2011-09-20, Dominik Psenner wrote:
> 
>> I believe that I have to explain this further. My idea is to split the
>> rolling into two parts:
> 
>> * rolling condition
>> * file naming strategy
> 
> +1
> 
> Stefan

Reply via email to