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

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

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

public class MemoryAppender extends AppenderBase<ILoggingEvent> {

I configure it as follows:

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

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 ......


More information about the Logback-user mailing list