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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppenderListener
(IAppenderListener listener) 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
close()
void
removeAppenderListener
(IAppenderListener listener) 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
-
Constructor Details
-
StreamsProxyAppender
public StreamsProxyAppender()Constructor.
-
-
Method Details
-
append
protected void append(org.apache.log4j.spi.LoggingEvent event) - Specified by:
append
in classorg.apache.log4j.AppenderSkeleton
-
close
public void close() -
requiresLayout
public boolean requiresLayout() -
addAppenderListener
Add a new listener to this appender which is interested in events generated by newly arriving messages.- Parameters:
listener
- the listener
-
removeAppenderListener
Remove the given listener.- Parameters:
listener
- the listener
-