java.lang.Object
org.apache.log4j.AppenderSkeleton
org.palladiosimulator.protocom.framework.java.ee.main.WebAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class WebAppender extends org.apache.log4j.AppenderSkeleton
The WebAppender class for Apache Log4j delegates log messages to the web UI.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.apache.log4j.AppenderSkeleton

    closed, errorHandler, headFilter, layout, name, tailFilter, threshold
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new WebAppender object and sets its name to NAME.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    append(org.apache.log4j.spi.LoggingEvent event)
     
    void
     
    Returns the content of the log.
    boolean
     

    Methods inherited from class org.apache.log4j.AppenderSkeleton

    activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • WebAppender

      public WebAppender()
      Constructs a new WebAppender object and sets its name to NAME.
  • Method Details

    • getLogContent

      public List<LogMessage> getLogContent()
      Returns the content of the log.
      Returns:
      a list containing all messages of the log
    • close

      public void close()
    • requiresLayout

      public boolean requiresLayout()
    • append

      protected void append(org.apache.log4j.spi.LoggingEvent event)
      Specified by:
      append in class org.apache.log4j.AppenderSkeleton