Class MarkerFilter

  • All Implemented Interfaces:
    ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle

    public class MarkerFilter
    extends ch.qos.logback.core.filter.AbstractMatcherFilter<ch.qos.logback.classic.spi.ILoggingEvent>
    Non-turbo filter checks whether the marker in the event matches the marker specified by user.
    Author:
    Gabriel Bauer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Marker marker  
      • Fields inherited from class ch.qos.logback.core.filter.AbstractMatcherFilter

        onMatch, onMismatch
      • Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

        context
    • Constructor Summary

      Constructors 
      Constructor Description
      MarkerFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ch.qos.logback.core.spi.FilterReply decide​(ch.qos.logback.classic.spi.ILoggingEvent event)
      Make a decision based on a logging event passed as an argument.
      void setMarker​(String markerName)
      The marker to match in the event.
      void start()  
      • Methods inherited from class ch.qos.logback.core.filter.AbstractMatcherFilter

        getOnMatch, getOnMismatch, setOnMatch, setOnMismatch
      • Methods inherited from class ch.qos.logback.core.filter.Filter

        getName, isStarted, setName, stop
      • Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase

        addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
    • Field Detail

      • marker

        protected org.slf4j.Marker marker
    • Constructor Detail

      • MarkerFilter

        public MarkerFilter()
    • Method Detail

      • decide

        public ch.qos.logback.core.spi.FilterReply decide​(ch.qos.logback.classic.spi.ILoggingEvent event)
        Make a decision based on a logging event passed as an argument.
        Specified by:
        decide in class ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
      • start

        public void start()
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        start in class ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
      • setMarker

        public void setMarker​(String markerName)
        The marker to match in the event.
        Parameters:
        markerName -