de.huxhorn.lilith.logback.appender
Class ClassicMultiplexSocketAppender

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.UnsynchronizedAppenderBase<E>
          extended by de.huxhorn.lilith.logback.appender.MultiplexSocketAppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
              extended by 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
 
Constructor Summary
ClassicMultiplexSocketAppender()
           
ClassicMultiplexSocketAppender(boolean compressing)
           
 
Method Summary
protected  void applicationIdentifierChanged()
           
 boolean isCompressing()
           
 boolean isIncludeCallerData()
           
protected  void preProcess(ch.qos.logback.classic.spi.LoggingEvent event)
           
 void setCompressing(boolean compressing)
          GZIPs the event if set to true.
 void setIncludeCallerData(boolean includeCallerData)
           
 void setPort(int port)
           
 
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
 

Field Detail

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
Constructor Detail

ClassicMultiplexSocketAppender

public ClassicMultiplexSocketAppender()

ClassicMultiplexSocketAppender

public ClassicMultiplexSocketAppender(boolean compressing)
Method Detail

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>