Class NullAppender

All Implemented Interfaces:
Appender, Filterable, LocationAware, LifeCycle, LifeCycle2

@Plugin(name="Null", category="Core", elementType="appender", printObject=true) public class NullAppender extends AbstractAppender
An Appender that ignores log events. Use for compatibility with version 1.2 and handy for composing a ScriptAppenderSelector.
  • Field Details

  • Method Details

    • createAppender

      @PluginFactory public static NullAppender createAppender(@PluginAttribute(value="name",defaultString="null") String name)
    • append

      public void append(LogEvent event)
      Description copied from interface: Appender
      Logs a LogEvent using whatever logic this Appender wishes to use. It is typically recommended to use a bridge pattern not only for the benefits from decoupling an Appender from its implementation, but it is also handy for sharing resources which may require some form of locking.
      event - The LogEvent.