public class LoghubAppender<E>
extends ch.qos.logback.core.UnsynchronizedAppenderBase<E>
| 限定符和类型 | 字段和说明 |
|---|---|
protected ch.qos.logback.core.encoder.Encoder<E> |
encoder |
protected org.joda.time.format.DateTimeFormatter |
formatter |
protected DateTimeFormatter |
formatter1 |
protected String |
logStore |
protected com.aliyun.openservices.aliyun.log.producer.Producer |
producer |
protected com.aliyun.openservices.aliyun.log.producer.ProducerConfig |
producerConfig |
protected com.aliyun.openservices.aliyun.log.producer.ProjectConfig |
projectConfig |
protected String |
source |
protected String |
timeFormat |
protected String |
timeZone |
protected String |
topic |
| 构造器和说明 |
|---|
LoghubAppender() |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextprotected ch.qos.logback.core.encoder.Encoder<E> encoder
protected com.aliyun.openservices.aliyun.log.producer.ProducerConfig producerConfig
protected com.aliyun.openservices.aliyun.log.producer.ProjectConfig projectConfig
protected com.aliyun.openservices.aliyun.log.producer.Producer producer
protected String logStore
protected String topic
protected String source
protected String timeZone
protected String timeFormat
protected org.joda.time.format.DateTimeFormatter formatter
protected DateTimeFormatter formatter1
public void start()
start 在接口中 ch.qos.logback.core.spi.LifeCyclestart 在类中 ch.qos.logback.core.UnsynchronizedAppenderBase<E>public com.aliyun.openservices.aliyun.log.producer.Producer createProducer()
public void stop()
stop 在接口中 ch.qos.logback.core.spi.LifeCyclestop 在类中 ch.qos.logback.core.UnsynchronizedAppenderBase<E>public void append(E eventObject)
append 在类中 ch.qos.logback.core.UnsynchronizedAppenderBase<E>public String getTimeFormat()
public void setTimeFormat(String timeFormat)
public String getLogStore()
public void setLogStore(String logStore)
public String getTopic()
public void setTopic(String topic)
public String getSource()
public void setSource(String source)
public String getTimeZone()
public void setTimeZone(String timeZone)
public String getProject()
public void setProject(String project)
public String getEndpoint()
public void setEndpoint(String endpoint)
public String getAccessKeyId()
public void setAccessKeyId(String accessKeyId)
public String getAccessKeySecret()
public void setAccessKeySecret(String accessKeySecret)
public String getUserAgent()
public void setUserAgent(String userAgent)
public int getTotalSizeInBytes()
public void setTotalSizeInBytes(int totalSizeInBytes)
public long getMaxBlockMs()
public void setMaxBlockMs(long maxBlockMs)
public int getIoThreadCount()
public void setIoThreadCount(int ioThreadCount)
public int getBatchSizeThresholdInBytes()
public void setBatchSizeThresholdInBytes(int batchSizeThresholdInBytes)
public int getBatchCountThreshold()
public void setBatchCountThreshold(int batchCountThreshold)
public int getLingerMs()
public void setLingerMs(int lingerMs)
public int getRetries()
public void setRetries(int retries)
public int getMaxReservedAttempts()
public void setMaxReservedAttempts(int maxReservedAttempts)
public long getBaseRetryBackoffMs()
public void setBaseRetryBackoffMs(long baseRetryBackoffMs)
public long getMaxRetryBackoffMs()
public void setMaxRetryBackoffMs(long maxRetryBackoffMs)
public ch.qos.logback.core.encoder.Encoder<E> getEncoder()
public void setEncoder(ch.qos.logback.core.encoder.Encoder<E> encoder)
public void setMdcFields(String mdcFields)
Copyright © 2019. All rights reserved.