|
Log4j 1.3alpha-6 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.spi.ComponentBase | +--org.apache.log4j.AppenderSkeleton | +--org.apache.log4j.varia.NullAppender
A NullAppender merely exists, it never outputs a message to any device.
Field Summary |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, headFilter, layout, name, tailFilter, threshold |
Fields inherited from class org.apache.log4j.spi.ComponentBase |
repository |
Constructor Summary | |
NullAppender()
|
Method Summary | |
void |
activateOptions()
There are no options to acticate. |
protected void |
append(LoggingEvent event)
Does not do anything. |
void |
close()
Release any resources allocated within the appender such as file handles, network connections, etc. |
void |
doAppend(LoggingEvent event)
Does not do anything. |
static NullAppender |
getInstance()
Whenever you can, use this method to retreive an instance instead of instantiating a new one with new . |
boolean |
requiresLayout()
NullAppenders do not need a layout. |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
addFilter, clearFilters, finalize, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold |
Methods inherited from class org.apache.log4j.spi.ComponentBase |
getLogger, setLoggerRepository |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.log4j.Appender |
setLoggerRepository |
Constructor Detail |
public NullAppender()
Method Detail |
public void activateOptions()
activateOptions
in interface OptionHandler
activateOptions
in class AppenderSkeleton
public static NullAppender getInstance()
new
.
public void close()
Appender
It is a programming error to append to a closed appender.
public void doAppend(LoggingEvent event)
doAppend
in interface Appender
doAppend
in class AppenderSkeleton
protected void append(LoggingEvent event)
append
in class AppenderSkeleton
public boolean requiresLayout()
|
Log4j 1.3alpha-6 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |