java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<ILoggingEvent>
ch.qos.logback.core.net.server.AbstractServerSocketAppender<ILoggingEvent>
ch.qos.logback.classic.net.server.ServerSocketAppender
- All Implemented Interfaces:
Appender<ILoggingEvent>
,ContextAware
,FilterAttachable<ILoggingEvent>
,LifeCycle
An appender that listens on a TCP port for connections from remote loggers.
Each event delivered to this appender is delivered to all connected remote
loggers.
- Author:
- Carl Harris
-
Field Summary
Fields inherited from class ch.qos.logback.core.net.server.AbstractServerSocketAppender
DEFAULT_BACKLOG, DEFAULT_CLIENT_QUEUE_SIZE
Fields inherited from class ch.qos.logback.core.AppenderBase
name, started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PreSerializationTransformer
<ILoggingEvent> getPST()
Gets a transformer that will be used to convert a received event to aSerializable
form.boolean
protected void
postProcessEvent
(ILoggingEvent event) Postprocess an event received viaappend()
.void
setIncludeCallerData
(boolean includeCallerData) Methods inherited from class ch.qos.logback.core.net.server.AbstractServerSocketAppender
append, createServerListener, createServerRunner, getAddress, getBacklog, getClientQueueSize, getInetAddress, getPort, getServerSocketFactory, setAddress, setBacklog, setClientQueueSize, setPort, start, stop
Methods inherited from class ch.qos.logback.core.AppenderBase
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
-
Constructor Details
-
ServerSocketAppender
public ServerSocketAppender()
-
-
Method Details
-
postProcessEvent
Description copied from class:AbstractServerSocketAppender
Postprocess an event received viaappend()
.- Specified by:
postProcessEvent
in classAbstractServerSocketAppender<ILoggingEvent>
- Parameters:
event
-
-
getPST
Description copied from class:AbstractServerSocketAppender
Gets a transformer that will be used to convert a received event to aSerializable
form.- Specified by:
getPST
in classAbstractServerSocketAppender<ILoggingEvent>
- Returns:
-
isIncludeCallerData
-
setIncludeCallerData
-