@Plugin(name="CustomHttpAppender",
category="Core",
elementType="appender")
public class CustomHttpAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
| Modifier | Constructor and Description |
|---|---|
protected |
CustomHttpAppender(String name,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
boolean ignoreExceptions,
String url,
Proxy proxy,
long scanIntervalSeconds,
org.apache.logging.log4j.core.config.Configuration configuration,
String filePath,
Integer fileStorageTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(org.apache.logging.log4j.core.LogEvent event) |
static CustomHttpAppender |
createAppender(String name,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
org.apache.logging.log4j.core.Filter filter,
String url,
String proxyHost,
String proxyPort,
String proxyUserName,
String proxyPassword,
String filePath,
String scanIntervalSecondsStr,
Integer fileStorageTime,
org.apache.logging.log4j.core.config.Configuration configuration) |
void |
stop() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toStringaddFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stopequalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stopprotected CustomHttpAppender(String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions, String url, Proxy proxy, long scanIntervalSeconds, org.apache.logging.log4j.core.config.Configuration configuration, String filePath, Integer fileStorageTime)
@PluginFactory public static CustomHttpAppender createAppender(@PluginAttribute(value="name") String name, @PluginElement(value="Layout") org.apache.logging.log4j.core.Layout<? extends Serializable> layout, @PluginElement(value="Filters") org.apache.logging.log4j.core.Filter filter, @PluginAttribute(value="url") String url, @PluginAttribute(value="proxyHost") String proxyHost, @PluginAttribute(value="proxyPort") String proxyPort, @PluginAttribute(value="proxyUserName") String proxyUserName, @PluginAttribute(value="proxyPassword") String proxyPassword, @PluginAttribute(value="filePath") String filePath, @PluginAttribute(value="scanIntervalSeconds") String scanIntervalSecondsStr, @PluginAttribute(value="fileStorageTime") Integer fileStorageTime, @PluginConfiguration org.apache.logging.log4j.core.config.Configuration configuration)
public void append(org.apache.logging.log4j.core.LogEvent event)
public void stop()
stop in interface org.apache.logging.log4j.core.LifeCyclestop in class org.apache.logging.log4j.core.AbstractLifeCycleCopyright © 2025. All rights reserved.