Ralph,
If FailoverAppender could do that, that would be ideal.
Thanks for your time.
Yogi
On Thu, Feb 14, 2013 at 10:52 AM, Ralph Goers wrote:
> What you are asking for is essentially the Flume embedded appender.
> However, since Flume has so many dependencies I could understand why you
> wou
I ended up writing a class that extends PatternLayout and it seems to
work. Here it is in case anyone else needs it.
package org.scharp.util;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.spi.LoggingEvent;
/**
*
* This class is a drop in replacement for a log4j PatternLayout
What you are asking for is essentially the Flume embedded appender. However,
since Flume has so many dependencies I could understand why you would want to
do this.
Would making RollingFileAppender not be final actually buy you anything? You
would have to provide your own PluginFactory method
You should be able to set the pattern to include minutes and then specify the
interval on the TriggeringPolicy. If you set it to 5 then it should roll every
5 minutes. If you specify modulate as true then it will occur on the 5, 10, 15,
etc minute of the hour.
Ralph
On Feb 14, 2013, at 9:55