@Plugin(name="Null", category="Core", elementType="appender", printObject=true) public class NullAppender extends AbstractAppender
ScriptAppenderSelector.AbstractAppender.Builder<B extends AbstractAppender.Builder<B>>LifeCycle.State| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_NAME |
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGERELEMENT_TYPE| Modifier and Type | Method and Description |
|---|---|
void |
append(LogEvent event)
Logs a LogEvent using whatever logic this Appender wishes to use.
|
static NullAppender |
createAppender(String name) |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toStringaddFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stopequalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stoppublic static final String PLUGIN_NAME
@PluginFactory public static NullAppender createAppender(@PluginAttribute(value="name",defaultString="null") String name)
public void append(LogEvent event)
Appenderevent - The LogEvent.Copyright © 1999-2021 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.