类 RedisAppender
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
cn.gmlee.tools.logback.appender.RedisAppender
- 所有已实现的接口:
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.LifeCycle
public class RedisAppender
extends ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
字段概要
字段修饰符和类型字段说明protected intprotected Stringprotected Stringprotected Stringprotected redis.clients.jedis.JedisPoolprotected intprotected int从类继承的字段 ch.qos.logback.core.UnsynchronizedAppenderBase
name, started从类继承的字段 ch.qos.logback.core.spi.ContextAwareBase
context -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddAdditionalField(com.cwbase.logback.AdditionalField p) 已过时。protected voidappend(ch.qos.logback.classic.spi.ILoggingEvent event) int已过时。intgetHost()getKey()ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>boolean已过时。booleangetMdc()已过时。intgetPort()已过时。已过时。已过时。getTags()已过时。intgetType()已过时。voidsetCallerStackIndex(int index) 已过时。voidsetDatabase(int database) voidvoidvoidsetLayout(ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> layout) voidsetLocation(boolean flag) 已过时。voidsetMdc(boolean flag) 已过时。voidsetPassword(String password) voidsetPort(int port) void已过时。voidsetSourceHost(String sourceHost) 已过时。voidsetSourcePath(String sourcePath) 已过时。void已过时。voidsetTimeout(int timeout) void已过时。voidstart()voidstop()从类继承的方法 ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString从类继承的方法 ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
字段详细资料
-
pool
protected redis.clients.jedis.JedisPool pool -
host
-
port
protected int port -
key
-
timeout
protected int timeout -
password
-
database
protected int database
-
-
构造器详细资料
-
RedisAppender
public RedisAppender()
-
-
方法详细资料
-
append
protected void append(ch.qos.logback.classic.spi.ILoggingEvent event) - 指定者:
append在类中ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
getSource
已过时。 -
setSource
已过时。 -
getSourceHost
已过时。 -
setSourceHost
已过时。 -
getSourcePath
已过时。 -
setSourcePath
已过时。 -
getTags
已过时。 -
setTags
已过时。 -
getType
已过时。 -
setType
已过时。 -
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getKey
-
setKey
-
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int timeout) -
getPassword
-
setPassword
-
getDatabase
public int getDatabase() -
setDatabase
public void setDatabase(int database) -
setMdc
已过时。 -
getMdc
已过时。 -
setLocation
已过时。 -
getLocation
已过时。 -
setCallerStackIndex
已过时。 -
getCallerStackIndex
已过时。 -
addAdditionalField
已过时。 -
getLayout
public ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> getLayout() -
setLayout
public void setLayout(ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> layout) -
start
public void start()- 指定者:
start在接口中ch.qos.logback.core.spi.LifeCycle- 覆盖:
start在类中ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
stop
public void stop()- 指定者:
stop在接口中ch.qos.logback.core.spi.LifeCycle- 覆盖:
stop在类中ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-