Class GuiLogEventAppender

  • All Implemented Interfaces:
    org.apache.logging.log4j.core.Appender , org.apache.logging.log4j.core.LifeCycle , org.apache.logging.log4j.core.LifeCycle2 , org.apache.logging.log4j.core.filter.Filterable , org.apache.logging.log4j.core.impl.LocationAware

    @Plugin(name = "GuiLogEvent", category = "Core", elementType = "appender", printObject = true) 
    public class GuiLogEventAppender
    extends AbstractAppender
                        

    Posts log events to a GuiLogEventBus.

    Since:

    3.2

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void append(LogEvent logEvent)
      static GuiLogEventAppender createAppender(@PluginAttribute(value = "name") String name, @PluginAttribute(value = "ignoreExceptions") boolean ignoreExceptions, @PluginElement(value = "Layout") Layout<out Serializable> layout, @PluginElement(value = "Filters") Filter filter)
      StringLayout getStringLayout()
      • Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender

        error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toString
      • Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable

        addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop
      • Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle

        getState, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • append

         void append(LogEvent logEvent)
      • createAppender

        @PluginFactory() static GuiLogEventAppender createAppender(@PluginAttribute(value = "name") String name, @PluginAttribute(value = "ignoreExceptions") boolean ignoreExceptions, @PluginElement(value = "Layout") Layout<out Serializable> layout, @PluginElement(value = "Filters") Filter filter)