@Plugin(name="HBaseTest", category="Core", elementType="appender", printObject=true) public final class HBaseTestAppender extends org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender<org.apache.logging.log4j.core.appender.OutputStreamManager>
Modifier and Type | Class and Description |
---|---|
static class |
HBaseTestAppender.Builder<B extends HBaseTestAppender.Builder<B>> |
private static class |
HBaseTestAppender.FactoryData
Data to pass to factory method.Unable to instantiate
|
private static class |
HBaseTestAppender.HBaseTestManagerFactory
Factory to create the Appender.
|
Modifier and Type | Field and Description |
---|---|
private static HBaseTestAppender.HBaseTestManagerFactory |
FACTORY |
private long |
maxSize |
static String |
PLUGIN_NAME |
private AtomicLong |
size |
private AtomicBoolean |
stop |
Modifier | Constructor and Description |
---|---|
private |
HBaseTestAppender(String name,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
org.apache.logging.log4j.core.Filter filter,
boolean ignoreExceptions,
boolean immediateFlush,
org.apache.logging.log4j.core.config.Property[] properties,
org.apache.logging.log4j.core.appender.OutputStreamManager manager,
long maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.logging.log4j.core.LogEvent event) |
static <B extends HBaseTestAppender.Builder<B>> |
newBuilder() |
directEncodeEvent, getImmediateFlush, getManager, start, stop, stop, writeByteArrayToManager
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toString
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
public static final String PLUGIN_NAME
private static final HBaseTestAppender.HBaseTestManagerFactory FACTORY
private final long maxSize
private final AtomicLong size
private final AtomicBoolean stop
private HBaseTestAppender(String name, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, org.apache.logging.log4j.core.Filter filter, boolean ignoreExceptions, boolean immediateFlush, org.apache.logging.log4j.core.config.Property[] properties, org.apache.logging.log4j.core.appender.OutputStreamManager manager, long maxSize)
@PluginBuilderFactory public static <B extends HBaseTestAppender.Builder<B>> B newBuilder()
public void append(org.apache.logging.log4j.core.LogEvent event)
append
in interface org.apache.logging.log4j.core.Appender
append
in class org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender<org.apache.logging.log4j.core.appender.OutputStreamManager>
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.