Class StreamsProxyAppender

java.lang.Object
org.apache.log4j.AppenderSkeleton
de.uka.ipd.sdq.workflow.logging.console.StreamsProxyAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class StreamsProxyAppender extends org.apache.log4j.AppenderSkeleton
An implementation of a Log4J appender which generates events and forwards them to registered listeners instead of taking the storing of the log messages themselves.
  • Field Summary

    Fields inherited from class org.apache.log4j.AppenderSkeleton

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

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a new listener to this appender which is interested in events generated by newly arriving messages.
    protected void
    append(org.apache.log4j.spi.LoggingEvent event)
     
    void
     
    void
    Remove the given listener.
    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
  • Constructor Details

    • StreamsProxyAppender

      public StreamsProxyAppender()
      Constructor.
  • Method Details

    • append

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

      public void close()
    • requiresLayout

      public boolean requiresLayout()
    • addAppenderListener

      public void addAppenderListener(IAppenderListener listener)
      Add a new listener to this appender which is interested in events generated by newly arriving messages.
      Parameters:
      listener - the listener
    • removeAppenderListener

      public void removeAppenderListener(IAppenderListener listener)
      Remove the given listener.
      Parameters:
      listener - the listener