public class NullAppender extends AppenderSkeleton
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
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()
Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.