public class VectorAppender extends AppenderSkeleton
AppenderSkeleton.NoOpErrorHandler| Modifier and Type | Field and Description |
|---|---|
Vector |
vector |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold| Constructor and Description |
|---|
VectorAppender() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions()
Does nothing.
|
void |
append(LoggingEvent event)
This method is called by the
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method. |
void |
close()
Release any resources allocated within the appender such as file
handles, network connections, etc.
|
Vector |
getVector() |
boolean |
isClosed() |
boolean |
requiresLayout()
Configurators call this method to determine if the appender
requires a layout.
|
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThresholdpublic Vector vector
public void activateOptions()
activateOptions in interface OptionHandleractivateOptions in class AppenderSkeletonpublic void append(LoggingEvent event)
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method.append in class AppenderSkeletonpublic void close()
AppenderIt is a programming error to append to a closed appender.
public Vector getVector()
public boolean isClosed()
public boolean requiresLayout()
Appendertrue,
meaning that layout is required, then the configurator will
configure an layout using the configuration information at its
disposal. If this method returns false, meaning that
a layout is not required, then layout configuration will be
skipped even if there is available layout configuration
information at the disposal of the configurator..
In the rather exceptional case, where the appender
implementation admits a layout but can also work without it, then
the appender should return true.
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.