[logback-user] Custom appender: no stack traces?

Christopher Piggott cpiggott at gmail.com
Tue Mar 8 18:36:36 CET 2011


Hi,
I wrote a custom appender that just writes to a circular queue:

public class MemoryAppender extends AppenderBase<ILoggingEvent> {
   stuff
}


I configure it as follows:

    <appender name="ringLogger" class="com.xxxxxxxx.MemoryAppender">
        <limit>1000</limit>
    </appender>

His append NEVER receives stack traces:

    public void add(ILoggingEvent loggingEntry) {
        boolean hasStackTrace = loggingEntry.getCallerData();  /*
always false ! */
    }

Any idea why this would be?  This appender is just about as simple as
it can get ......

--Chris


More information about the Logback-user mailing list