public abstract class AbstractLogglyAppender<E>
extends ch.qos.logback.core.UnsynchronizedAppenderBase<E>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENDPOINT_PREFIX |
static String |
DEFAULT_LAYOUT_PATTERN |
protected String |
endpointUrl |
protected String |
inputKey |
protected ch.qos.logback.core.Layout<E> |
layout |
protected boolean |
layoutCreatedImplicitly |
protected Proxy |
proxy |
protected static Charset |
UTF_8 |
| Constructor and Description |
|---|
AbstractLogglyAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildEndpointUrl(String inputKey) |
protected ch.qos.logback.core.Layout<E> |
createLayout() |
protected void |
ensureLayout() |
String |
getEndpointUrl() |
int |
getHttpReadTimeoutInMillis() |
String |
getInputKey() |
ch.qos.logback.core.Layout<E> |
getLayout() |
String |
getPattern() |
String |
getProxyHost() |
int |
getProxyPort() |
protected String |
readResponseBody(InputStream input) |
void |
setEndpointUrl(String endpointUrl) |
void |
setHttpReadTimeoutInMillis(int httpReadTimeoutInMillis) |
void |
setInputKey(String inputKey) |
void |
setLayout(ch.qos.logback.core.Layout<E> layout) |
void |
setPattern(String pattern) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setProxyPort(String proxyPort) |
void |
start() |
void |
stop() |
protected byte[] |
toBytes(InputStream is) |
addFilter, append, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic static final String DEFAULT_ENDPOINT_PREFIX
public static final String DEFAULT_LAYOUT_PATTERN
protected static final Charset UTF_8
protected String endpointUrl
protected String inputKey
protected ch.qos.logback.core.Layout<E> layout
protected boolean layoutCreatedImplicitly
protected Proxy proxy
public void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.UnsynchronizedAppenderBase<E>public void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclestop in class ch.qos.logback.core.UnsynchronizedAppenderBase<E>protected byte[] toBytes(InputStream is) throws IOException
IOExceptionprotected String readResponseBody(InputStream input) throws IOException
IOExceptionprotected final void ensureLayout()
protected ch.qos.logback.core.Layout<E> createLayout()
public String getEndpointUrl()
public void setEndpointUrl(String endpointUrl)
public String getInputKey()
public void setInputKey(String inputKey)
public String getPattern()
public void setPattern(String pattern)
public ch.qos.logback.core.Layout<E> getLayout()
public void setLayout(ch.qos.logback.core.Layout<E> layout)
public int getProxyPort()
public void setProxyPort(int proxyPort)
public void setProxyPort(String proxyPort)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public int getHttpReadTimeoutInMillis()
public void setHttpReadTimeoutInMillis(int httpReadTimeoutInMillis)
Copyright © 2014. All Rights Reserved.