|
NLOG4J 1.2.24 | |||||||||
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.performance.NullAppender
public class NullAppender
A bogus appender which calls the format method of its layout object but does not write the result anywhere.
The
org.apache.log4j.performance.NullAppender
class is
intended for internal use only. Consequently, it is not
included in the log4j.jar file.
Field Summary | |
---|---|
static String |
s
|
String |
t
|
Fields inherited from class org.apache.log4j.AppenderSkeleton |
---|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
---|---|
NullAppender()
|
|
NullAppender(Layout layout)
|
Method Summary | |
---|---|
void |
append(LoggingEvent event)
Subclasses of AppenderSkeleton should implement this
method to perform actual logging. |
void |
close()
Release any resources allocated within the appender such as file handles, network connections, etc. |
void |
doAppend(LoggingEvent event)
This method performs threshold checks and invokes filters before delegating actual logging to the subclasses specific AppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent) method. |
boolean |
requiresLayout()
This is a bogus appender but it still uses a layout. |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
---|
activateOptions, addFilter, clearFilters, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String s
public String t
Constructor Detail |
---|
public NullAppender()
public NullAppender(Layout layout)
Method Detail |
---|
public void close()
Appender
It is a programming error to append to a closed appender.
public void doAppend(LoggingEvent event)
AppenderSkeleton
AppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent)
method.
doAppend
in interface Appender
doAppend
in class AppenderSkeleton
public void append(LoggingEvent event)
AppenderSkeleton
AppenderSkeleton
should implement this
method to perform actual logging. See also AppenderSkeleton.doAppend
method.
append
in class AppenderSkeleton
public boolean requiresLayout()
|
NLOG4J 1.2.24 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |