|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--junit.log4j.JUnitAppender
Appender that
joins JUnit and
Log4J.
| Field Summary | |
protected org.apache.log4j.spi.Filter |
headFilter
The first filter in the filter chain. |
protected org.apache.log4j.spi.Filter |
tailFilter
The last filter in the filter chain. |
| Constructor Summary | |
JUnitAppender()
Creates a new JUnitAppender instance. |
|
| Method Summary | |
void |
activateOptions()
Does nothing, since this class has no specific options. |
void |
addFilter(org.apache.log4j.spi.Filter newFilter)
Add a filter to end of the filter list. |
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
Sends the event to the connector. |
void |
clearFilters()
Clear the filters chain. |
void |
close()
Release any resources allocated within the appender. |
void |
doAppend(org.apache.log4j.spi.LoggingEvent event)
Filter the event using the current filters. |
org.apache.log4j.spi.ErrorHandler |
getErrorHandler()
Get the value of errorHandler. |
org.apache.log4j.spi.Filter |
getFilter()
Returns the head Filter. |
org.apache.log4j.Layout |
getLayout()
Get the value of layout. |
java.lang.String |
getName()
Get the value of name. |
java.lang.String[] |
getOptionStrings()
Deprecated. Use the getter method for the option directly instead |
boolean |
requiresLayout()
Yes, this appender requires a layout. |
void |
setErrorHandler(org.apache.log4j.spi.ErrorHandler v)
Set the value of errorHandler. |
void |
setLayout(org.apache.log4j.Layout v)
Set the value of layout. |
void |
setName(java.lang.String v)
Set the value of name. |
void |
setOption(java.lang.String key,
java.lang.String value)
Deprecated. Use the setter method for the option directly instead |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.log4j.spi.Filter headFilter
null
initially.protected org.apache.log4j.spi.Filter tailFilter
| Constructor Detail |
public JUnitAppender()
JUnitAppender instance.| Method Detail |
public java.lang.String getName()
getName in interface org.apache.log4j.Appenderpublic void setName(java.lang.String v)
setName in interface org.apache.log4j.Appenderv - Value to assign to name.public void close()
close in interface org.apache.log4j.Appenderpublic void addFilter(org.apache.log4j.spi.Filter newFilter)
addFilter in interface org.apache.log4j.AppendernewFilter - new filter to be addedpublic org.apache.log4j.spi.Filter getFilter()
getFilter in interface org.apache.log4j.Appenderpublic void clearFilters()
clearFilters in interface org.apache.log4j.Appenderpublic void doAppend(org.apache.log4j.spi.LoggingEvent event)
Filter the event using the current filters. If
there exists an accepting filter
or none in the sequence denies the
event, it is appended.doAppend in interface org.apache.log4j.Appenderevent - a value of type 'LoggingEvent'public org.apache.log4j.spi.ErrorHandler getErrorHandler()
getErrorHandler in interface org.apache.log4j.Appenderpublic void setErrorHandler(org.apache.log4j.spi.ErrorHandler v)
setErrorHandler in interface org.apache.log4j.Appenderv - Value to assign to errorHandler.public org.apache.log4j.Layout getLayout()
getLayout in interface org.apache.log4j.Appenderpublic void setLayout(org.apache.log4j.Layout v)
setLayout in interface org.apache.log4j.Appenderv - Value to assign to layout.public boolean requiresLayout()
requiresLayout in interface org.apache.log4j.Appendertrueprotected void append(org.apache.log4j.spi.LoggingEvent event)
connector.event - a LoggingEvent valuegetLayout()public void activateOptions()
activateOptions in interface org.apache.log4j.spi.OptionHandlerpublic java.lang.String[] getOptionStrings()
public void setOption(java.lang.String key,
java.lang.String value)
key - option keyvalue - option value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||