Class AsyncAppender

All Implemented Interfaces:
Appender<ILoggingEvent>, AppenderAttachable<ILoggingEvent>, ContextAware, FilterAttachable<ILoggingEvent>, LifeCycle

public class AsyncAppender extends AsyncAppenderBase<ILoggingEvent>
In order to optimize performance this appender deems events of level TRACE, DEBUG and INFO as discardable. See the chapter on appenders in the manual for further information.
Since:
1.0.4
Author:
Ceki Gülcü
  • Constructor Details

    • AsyncAppender

      public AsyncAppender()
  • Method Details

    • isDiscardable

      protected boolean isDiscardable(ILoggingEvent event)
      Events of level TRACE, DEBUG and INFO are deemed to be discardable.
      Overrides:
      isDiscardable in class AsyncAppenderBase<ILoggingEvent>
      Parameters:
      event -
      Returns:
      true if the event is of level TRACE, DEBUG or INFO false otherwise.
    • preprocess

      protected void preprocess(ILoggingEvent eventObject)
      Overrides:
      preprocess in class AsyncAppenderBase<ILoggingEvent>
    • isIncludeCallerData

      public boolean isIncludeCallerData()
    • setIncludeCallerData

      public void setIncludeCallerData(boolean includeCallerData)