Class DropwizardSocketAppender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.UnsynchronizedAppenderBase<E>
ch.qos.logback.core.OutputStreamAppender<E>
io.dropwizard.logging.common.socket.DropwizardSocketAppender<E>
- All Implemented Interfaces:
ch.qos.logback.core.Appender<E>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.FilterAttachable<E>,ch.qos.logback.core.spi.LifeCycle
public class DropwizardSocketAppender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
extends ch.qos.logback.core.OutputStreamAppender<E>
Sends log events to a TCP server, a connection to which is represented as
ResilientSocketOutputStream.-
Field Summary
Fields inherited from class ch.qos.logback.core.OutputStreamAppender
encoder, streamWriteLockFields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
name, startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionDropwizardSocketAppender(String host, int port, int connectionTimeoutMs, int sendBufferSize, SocketFactory socketFactory) -
Method Summary
Methods inherited from class ch.qos.logback.core.OutputStreamAppender
append, closeOutputStream, getEncoder, getOutputStream, isImmediateFlush, setEncoder, setImmediateFlush, setLayout, setOutputStream, stop, subAppend, updateByteCount, writeByteArrayToOutputStreamWithPossibleFlush, writeOutMethods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, buildReentryGuard, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
DropwizardSocketAppender
public DropwizardSocketAppender(String host, int port, int connectionTimeoutMs, int sendBufferSize, SocketFactory socketFactory)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle- Overrides:
startin classch.qos.logback.core.OutputStreamAppender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
-
socketOutputStream
-