@Plugin(name="Memory",
category="Core",
elementType="appender")
public class MemoryAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
Modifier and Type | Class and Description |
---|---|
static class |
MemoryAppender.MemoryAppenderBuilder |
Modifier | Constructor and Description |
---|---|
protected |
MemoryAppender(String name,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.StringLayout layout,
boolean ignoreExceptions,
org.apache.logging.log4j.core.config.Property[] properties,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.logging.log4j.core.LogEvent logEvent) |
protected static MemoryAppender |
createAppender(String name,
int bufferSize,
boolean ignoreExceptions,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.StringLayout layout) |
int |
getBufferSize() |
List<String> |
getLogLines() |
static MemoryAppender.MemoryAppenderBuilder |
newBuilder() |
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, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.StringLayout layout, boolean ignoreExceptions, org.apache.logging.log4j.core.config.Property[] properties, int bufferSize)
public static MemoryAppender.MemoryAppenderBuilder newBuilder()
@PluginFactory protected static MemoryAppender createAppender(@PluginAttribute(value="name") String name, @PluginAttribute(value="bufferSize") int bufferSize, @PluginAttribute(value="ignoreExceptions",defaultBoolean=true) boolean ignoreExceptions, @PluginElement(value="Filter") org.apache.logging.log4j.core.Filter filter, @PluginElement(value="Layout") org.apache.logging.log4j.core.StringLayout layout)
public void append(org.apache.logging.log4j.core.LogEvent logEvent)
public int getBufferSize()
Copyright © 2024 OpenMRS Inc.. All rights reserved.