public class ChainsawAppender
extends org.apache.log4j.AppenderSkeleton
Constructor and Description |
---|
ChainsawAppender()
Constructor, initialises the singleton instance of the appender
|
Modifier and Type | Method and Description |
---|---|
void |
activateOptions()
Instantiates and activates an instance of a ChainsawViewer
to view the contents of this appender.
|
protected void |
append(org.apache.log4j.spi.LoggingEvent aEvent)
Appends the event
|
void |
close()
Close does nothing
|
org.apache.log4j.Appender |
getAppender() |
String |
getApplication()
Returns value of the Application option.
|
String |
getViewerClass()
Gets the viewer class to use to view the events.
|
boolean |
requiresLayout()
This appender does not require layout and so return false
|
void |
setAppender(org.apache.log4j.Appender appender) |
void |
setApplication(String lapp)
The Application option takes a string value which should be the
name of the application getting logged
|
void |
setViewerClass(String classname)
Sets the viewer class to use to view the events.
|
public ChainsawAppender()
public boolean requiresLayout()
public org.apache.log4j.Appender getAppender()
public void setAppender(org.apache.log4j.Appender appender)
protected void append(org.apache.log4j.spi.LoggingEvent aEvent)
append
in class org.apache.log4j.AppenderSkeleton
aEvent
- the LoggingEvent to appendpublic void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.AppenderSkeleton
public void close()
public void setViewerClass(String classname)
classname
- The class name of the viewer class.public String getViewerClass()
public void setApplication(String lapp)
public String getApplication()
Copyright © 2002-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.