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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ch.qos.logback.core.spi.FilterReply
    decide(ch.qos.logback.classic.spi.ILoggingEvent event)
     
     
    void
    setContextSourceName(String contextSourceName)
    Can be set from xml e.g

    Methods inherited from class ch.qos.logback.core.filter.Filter

    getName, isStarted, setName, start, stop

    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, toString, wait, wait, wait
  • 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:
      decide in class ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
    • getContextSourceName

      public String getContextSourceName()
    • setContextSourceName

      public void setContextSourceName(String contextSourceName)
      Can be set from xml e.g
      invalid input: '&ltlocalSourceName'invalid input: '&gt'${GDA_SOURCE}invalid input: '&lt'/localSourceNameinvalid input: '&gt'
      Parameters:
      contextSourceName -