Class WebAppender
- 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.
-
-
Constructor Summary
Constructors Constructor Description WebAppender()
Constructs a new WebAppender object and sets its name toNAME
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
append(org.apache.log4j.spi.LoggingEvent event)
void
close()
List<LogMessage>
getLogContent()
Returns the content of the log.boolean
requiresLayout()
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebAppender
public WebAppender()
Constructs a new WebAppender object and sets its name toNAME
.
-
-
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 classorg.apache.log4j.AppenderSkeleton
-
-