|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.AppenderSkeleton | +--org.apache.log4j.chainsaw.ChainsawAppender
ChainsawAppender receives LoggingEvents from the local Log4J environment, and appends them into a model that can be used inside a Swing GUI
Field Summary |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
ChainsawAppender()
Constructor, initialises the singleton instance of the appender |
Method Summary | |
void |
activateOptions()
Instantiates and activates an instance of a ChainsawViewer to view the contents of this appender. |
protected void |
append(LoggingEvent aEvent)
Appends the event |
void |
close()
Close does nothing |
Appender |
getAppender()
|
java.lang.String |
getApplication()
Returns value of the Application option. |
java.lang.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(Appender appender)
|
void |
setApplication(java.lang.String lapp)
The Application option takes a string value which should be the name of the application getting logged |
void |
setViewerClass(java.lang.String classname)
Sets the viewer class to use to view the events. |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getLogger, 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 Detail |
public ChainsawAppender()
Method Detail |
public boolean requiresLayout()
public Appender getAppender()
public void setAppender(Appender appender)
protected void append(LoggingEvent aEvent)
append
in class AppenderSkeleton
aEvent
- the LoggingEvent to appendpublic void activateOptions()
activateOptions
in interface OptionHandler
activateOptions
in class AppenderSkeleton
public void close()
public void setViewerClass(java.lang.String classname)
classname
- The class name of the viewer class.public java.lang.String getViewerClass()
public void setApplication(java.lang.String lapp)
public java.lang.String getApplication()
|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |