@Plugin(name="NullAppender",
category="Core",
elementType="appender",
printObject=false)
public class NullAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
Modifier | Constructor and Description |
---|---|
protected |
NullAppender(String name,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
boolean ignoreExceptions) |
Modifier and Type | Method and Description |
---|---|
void |
addToLogger(String loggerName,
org.apache.logging.log4j.Level level) |
void |
append(org.apache.logging.log4j.core.LogEvent event) |
static NullAppender |
createNullAppender() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, setHandler, toString
addFilter, getFilter, hasFilter, isFiltered, removeFilter, start, stop
equalsImpl, getState, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping
protected NullAppender(String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions)
@PluginFactory public static NullAppender createNullAppender()
public void addToLogger(String loggerName, org.apache.logging.log4j.Level level)
public void append(org.apache.logging.log4j.core.LogEvent event)
Copyright © 2017 The Apache Software Foundation. All rights reserved.