public class NullAppender extends AppenderSkeleton
Modifier and Type | Field and Description |
---|---|
private static NullAppender |
instance |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
Constructor and Description |
---|
NullAppender() |
Modifier and Type | Method and Description |
---|---|
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.
|
NullAppender |
getInstance()
Deprecated.
Use getNullAppender instead. getInstance should have been static.
|
static NullAppender |
getNullAppender()
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.
|
addFilter, clearFilters, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
private static NullAppender instance
public NullAppender()
public void activateOptions()
activateOptions
in interface OptionHandler
activateOptions
in class AppenderSkeleton
public NullAppender getInstance()
new
.public static NullAppender getNullAppender()
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()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses