类 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>
  • 字段详细资料

    • pool

      protected redis.clients.jedis.JedisPool pool
    • host

      protected String host
    • port

      protected int port
    • key

      protected String key
    • timeout

      protected int timeout
    • password

      protected String 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

      @Deprecated public String getSource()
      已过时。
    • setSource

      @Deprecated public void setSource(String source)
      已过时。
    • getSourceHost

      @Deprecated public String getSourceHost()
      已过时。
    • setSourceHost

      @Deprecated public void setSourceHost(String sourceHost)
      已过时。
    • getSourcePath

      @Deprecated public String getSourcePath()
      已过时。
    • setSourcePath

      @Deprecated public void setSourcePath(String sourcePath)
      已过时。
    • getTags

      @Deprecated public String getTags()
      已过时。
    • setTags

      @Deprecated public void setTags(String tags)
      已过时。
    • getType

      @Deprecated public String getType()
      已过时。
    • setType

      @Deprecated public void setType(String type)
      已过时。
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getTimeout

      public int getTimeout()
    • setTimeout

      public void setTimeout(int timeout)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getDatabase

      public int getDatabase()
    • setDatabase

      public void setDatabase(int database)
    • setMdc

      @Deprecated public void setMdc(boolean flag)
      已过时。
    • getMdc

      @Deprecated public boolean getMdc()
      已过时。
    • setLocation

      @Deprecated public void setLocation(boolean flag)
      已过时。
    • getLocation

      @Deprecated public boolean getLocation()
      已过时。
    • setCallerStackIndex

      @Deprecated public void setCallerStackIndex(int index)
      已过时。
    • getCallerStackIndex

      @Deprecated public int getCallerStackIndex()
      已过时。
    • addAdditionalField

      @Deprecated public void addAdditionalField(com.cwbase.logback.AdditionalField p)
      已过时。
    • 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>