Class 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 String NAME  
      • Fields inherited from class org.apache.log4j.AppenderSkeleton

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

      Constructors 
      Constructor Description
      WebAppender()
      Constructs a new WebAppender object and sets its name to NAME.
    • Constructor Detail

      • WebAppender

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

      • 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