@Plugin(name="RedisAppender",
category="Core",
elementType="appender",
printObject=true)
public class RedisAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
| 限定符 | 构造器和说明 |
|---|---|
protected |
RedisAppender(String name,
String appName,
String env,
String redisHost,
String redisPort,
String redisAuth,
String runModel,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
boolean ignoreExceptions,
String expand,
int maxCount,
int logQueueSize,
int redisDb,
int threadPoolSize,
boolean compressor,
String model,
String masterName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
append(org.apache.logging.log4j.core.LogEvent logEvent) |
static RedisAppender |
createAppender(String name,
String appName,
String env,
String redisHost,
String redisPort,
String redisAuth,
int maxCount,
String runModel,
String expand,
int redisDb,
int logQueueSize,
int threadPoolSize,
boolean compressor,
String model,
String masterName,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
org.apache.logging.log4j.core.Filter filter) |
String |
getAppName() |
String |
getEnv() |
String |
getExpand() |
int |
getLogQueueSize() |
String |
getMasterName() |
int |
getMaxCount() |
String |
getModel() |
String |
getRedisAuth() |
int |
getRedisDb() |
String |
getRedisHost() |
String |
getRedisPort() |
String |
getRunModel() |
int |
getThreadPoolSize() |
boolean |
isCompressor() |
protected void |
send(org.apache.logging.log4j.core.LogEvent logEvent) |
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, stop, stopprotected RedisAppender(String name, String appName, String env, String redisHost, String redisPort, String redisAuth, String runModel, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions, String expand, int maxCount, int logQueueSize, int redisDb, int threadPoolSize, boolean compressor, String model, String masterName)
@PluginFactory public static RedisAppender createAppender(@PluginAttribute(value="name") String name, @PluginAttribute(value="appName") String appName, @PluginAttribute(value="env") String env, @PluginAttribute(value="redisHost") String redisHost, @PluginAttribute(value="redisPort") String redisPort, @PluginAttribute(value="redisAuth") String redisAuth, @PluginAttribute(value="maxCount") int maxCount, @PluginAttribute(value="runModel") String runModel, @PluginAttribute(value="expand") String expand, @PluginAttribute(value="redisDb") int redisDb, @PluginAttribute(value="logQueueSize") int logQueueSize, @PluginAttribute(value="threadPoolSize") int threadPoolSize, @PluginAttribute(value="compressor") boolean compressor, @PluginAttribute(value="model") String model, @PluginAttribute(value="masterName") String masterName, @PluginElement(value="Layout") org.apache.logging.log4j.core.Layout<? extends Serializable> layout, @PluginElement(value="Filter") org.apache.logging.log4j.core.Filter filter)
public void append(org.apache.logging.log4j.core.LogEvent logEvent)
protected void send(org.apache.logging.log4j.core.LogEvent logEvent)
public String getAppName()
public String getModel()
public String getRunModel()
public String getMasterName()
public String getRedisHost()
public String getRedisPort()
public int getRedisDb()
public String getRedisAuth()
public String getExpand()
public String getEnv()
public int getMaxCount()
public int getThreadPoolSize()
public int getLogQueueSize()
public boolean isCompressor()
Copyright © 2022. All rights reserved.