de.huxhorn.lilith.logback.appender
Class ClassicMultiplexSocketAppender
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.UnsynchronizedAppenderBase<E>
de.huxhorn.lilith.logback.appender.MultiplexSocketAppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
de.huxhorn.lilith.logback.appender.ClassicMultiplexSocketAppender
- All Implemented Interfaces:
- ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.LoggingEvent>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.LoggingEvent>, ch.qos.logback.core.spi.LifeCycle
public class ClassicMultiplexSocketAppender
- extends de.huxhorn.lilith.logback.appender.MultiplexSocketAppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
|
Field Summary |
static int |
COMPRESSED_DEFAULT_PORT
The default port number of compressed new-style remote logging server (10000). |
static int |
UNCOMPRESSED_DEFAULT_PORT
The default port number of uncompressed new-style remote logging server (10001). |
| Fields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase |
name, started |
| Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
context |
| Methods inherited from class de.huxhorn.lilith.logback.appender.MultiplexSocketAppenderBase |
addRemoteHost, append, getApplicationIdentifier, getEncoder, getPort, getQueueSize, getReconnectionDelay, getRemoteHostsList, isDebug, sendBytes, setApplicationIdentifier, setDebug, setEncoder, setQueueSize, setReconnectionDelay, setRemoteHosts, setRemoteHostsList, start, stop |
| Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString |
| Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ch.qos.logback.core.spi.ContextAware |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext |
COMPRESSED_DEFAULT_PORT
public static final int COMPRESSED_DEFAULT_PORT
- The default port number of compressed new-style remote logging server (10000).
- See Also:
- Constant Field Values
UNCOMPRESSED_DEFAULT_PORT
public static final int UNCOMPRESSED_DEFAULT_PORT
- The default port number of uncompressed new-style remote logging server (10001).
- See Also:
- Constant Field Values
ClassicMultiplexSocketAppender
public ClassicMultiplexSocketAppender()
ClassicMultiplexSocketAppender
public ClassicMultiplexSocketAppender(boolean compressing)
applicationIdentifierChanged
protected void applicationIdentifierChanged()
- Specified by:
applicationIdentifierChanged in class de.huxhorn.lilith.logback.appender.MultiplexSocketAppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
setPort
public void setPort(int port)
- Overrides:
setPort in class de.huxhorn.lilith.logback.appender.MultiplexSocketAppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
setCompressing
public void setCompressing(boolean compressing)
- GZIPs the event if set to true.
Automatically chooses the correct default port if it was not previously set manually.
- Parameters:
compressing - if events will be gzipped or not.
isCompressing
public boolean isCompressing()
isIncludeCallerData
public boolean isIncludeCallerData()
setIncludeCallerData
public void setIncludeCallerData(boolean includeCallerData)
preProcess
protected void preProcess(ch.qos.logback.classic.spi.LoggingEvent event)
- Specified by:
preProcess in class de.huxhorn.lilith.logback.appender.MultiplexSocketAppenderBase<ch.qos.logback.classic.spi.LoggingEvent>