public class SocketEncoderAppender<E>
extends ch.qos.logback.core.OutputStreamAppender<E>
implements ch.qos.logback.core.net.SocketConnector.ExceptionHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_QUEUE_SIZE
Default size of the deque used to hold logging events that are destined
for the remote peer.
|
| Constructor and Description |
|---|
SocketEncoderAppender() |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionFailed(ch.qos.logback.core.net.SocketConnector socketConnector,
Exception ex) |
int |
getAcceptConnectionTimeout() |
int |
getPort() |
int |
getQueueSize() |
String |
getRemoteHost() |
protected SocketFactory |
getSocketFactory()
Gets the default
SocketFactory for the platform. |
protected ch.qos.logback.core.net.SocketConnector |
newConnector(InetAddress address,
int port,
long initialDelay,
long retryDelay) |
void |
setAcceptConnectionTimeout(int acceptConnectionTimeout) |
void |
setPort(int port) |
void |
setQueueSize(int queueSize) |
void |
setRemoteHost(String remoteHost) |
void |
start() |
void |
stop() |
protected void |
subAppend(E event) |
append, closeOutputStream, getEncoder, getOutputStream, setEncoder, setLayout, setOutputStream, writeOutaddFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic static final int DEFAULT_QUEUE_SIZE
public void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.OutputStreamAppender<E>public void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclestop in class ch.qos.logback.core.OutputStreamAppender<E>protected ch.qos.logback.core.net.SocketConnector newConnector(InetAddress address, int port, long initialDelay, long retryDelay)
protected SocketFactory getSocketFactory()
SocketFactory for the platform.
Subclasses may override to provide a custom socket factory.
protected void subAppend(E event)
subAppend in class ch.qos.logback.core.OutputStreamAppender<E>public void connectionFailed(ch.qos.logback.core.net.SocketConnector socketConnector,
Exception ex)
connectionFailed in interface ch.qos.logback.core.net.SocketConnector.ExceptionHandlerpublic int getPort()
public void setPort(int port)
public String getRemoteHost()
public void setRemoteHost(String remoteHost)
public int getQueueSize()
public void setQueueSize(int queueSize)
public int getAcceptConnectionTimeout()
public void setAcceptConnectionTimeout(int acceptConnectionTimeout)
Copyright © 2015. All Rights Reserved.