@Plugin(name="Memory",
category="Core",
elementType="appender",
printObject=true)
public class MemoryAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
Modifier | Constructor and Description |
---|---|
protected |
MemoryAppender(String name,
int size,
org.apache.logging.log4j.core.Filter filter,
boolean ignoreExceptions) |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.logging.log4j.core.LogEvent event) |
static MemoryAppender |
createAppender(String name,
int size,
org.apache.logging.log4j.core.Filter filter,
boolean ignoreExceptions) |
Queue<LogStatement> |
getStatements() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toString
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stop
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
protected MemoryAppender(String name, int size, org.apache.logging.log4j.core.Filter filter, boolean ignoreExceptions)
public void append(org.apache.logging.log4j.core.LogEvent event)
public Queue<LogStatement> getStatements()
@PluginFactory public static MemoryAppender createAppender(@PluginAttribute(value="name") String name, @PluginAttribute(value="size",defaultInt=10) int size, @PluginElement(value="Filter") org.apache.logging.log4j.core.Filter filter, @PluginAttribute(value="ignoreExceptions",defaultBoolean=true) boolean ignoreExceptions)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.