Package gda.util.logging
Class SourceProcessFilter
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
gda.util.logging.SourceProcessFilter
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle
public class SourceProcessFilter
extends ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
Logger contexts for GDA client and server processes are configured with
LogbackUtils.SOURCE_PROPERTY_NAME which corresponds to the "name" of the
process they exist in. Each process contains its own appenders for
console/graylog however all events are sent to the server so for console/Graylog appenders
filter to only log server events-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionch.qos.logback.core.spi.FilterReplydecide(ch.qos.logback.classic.spi.ILoggingEvent event) voidsetContextSourceName(String contextSourceName) Can be set from xml e.gMethods inherited from class ch.qos.logback.core.filter.Filter
getName, isStarted, setName, start, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
SourceProcessFilter
public SourceProcessFilter()
-
-
Method Details
-
decide
public ch.qos.logback.core.spi.FilterReply decide(ch.qos.logback.classic.spi.ILoggingEvent event) - Specified by:
decidein classch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
-
getContextSourceName
-
setContextSourceName
Can be set from xml e.ginvalid input: '<localSourceName'invalid input: '>'${GDA_SOURCE}invalid input: '<'/localSourceNameinvalid input: '>'
- Parameters:
contextSourceName-
-