@Plugin(name="CustomFile",
category="core",
elementType="appender",
printObject=true)
public final class CustomFileAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
Modifier and Type | Field and Description |
---|---|
static Integer |
dummy |
Modifier and Type | Method and Description |
---|---|
static void |
addFileAppender(String filename) |
void |
append(org.apache.logging.log4j.core.LogEvent e) |
static void |
close() |
static CustomFileAppender |
createAppender(String fileName,
String append,
String locking,
String name,
String immediateFlush,
String ignore,
String bufferedIo,
String bufferSizeStr,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
org.apache.logging.log4j.core.Filter filter,
String advertise,
String advertiseUri,
org.apache.logging.log4j.core.config.Configuration config) |
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
public static final Integer dummy
public void append(org.apache.logging.log4j.core.LogEvent e)
@PluginFactory public static CustomFileAppender createAppender(@PluginAttribute(value="fileName") String fileName, @PluginAttribute(value="append") String append, @PluginAttribute(value="locking") String locking, @PluginAttribute(value="name") String name, @PluginAttribute(value="immediateFlush") String immediateFlush, @PluginAttribute(value="ignoreExceptions") String ignore, @PluginAttribute(value="bufferedIo") String bufferedIo, @PluginAttribute(value="bufferSize") String bufferSizeStr, @PluginElement(value="Layout") org.apache.logging.log4j.core.Layout<? extends Serializable> layout, @PluginElement(value="Filter") org.apache.logging.log4j.core.Filter filter, @PluginAttribute(value="advertise") String advertise, @PluginAttribute(value="advertiseUri") String advertiseUri, @PluginConfiguration org.apache.logging.log4j.core.config.Configuration config)
public static void addFileAppender(String filename)
public static void close()
Copyright © 2020. All rights reserved.