@Plugin(name="CustomFile",
category="core",
elementType="appender",
printObject=true)
public final class CustomFileAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
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, setHandler, toString
addFilter, getFilter, hasFilter, isFiltered, removeFilter, start, stop
equalsImpl, getState, hashCodeImpl, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping
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 © 2016. All rights reserved.