Package de.cxp.ocs.config.logging
Class MarkerFilter
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.filter.Filter<E>
-
- ch.qos.logback.core.filter.AbstractMatcherFilter<ch.qos.logback.classic.spi.ILoggingEvent>
-
- de.cxp.ocs.config.logging.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.Markermarker
-
Constructor Summary
Constructors Constructor Description MarkerFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.qos.logback.core.spi.FilterReplydecide(ch.qos.logback.classic.spi.ILoggingEvent event)Make a decision based on a logging event passed as an argument.voidsetMarker(String markerName)The marker to match in the event.voidstart()-
Methods inherited from class ch.qos.logback.core.filter.AbstractMatcherFilter
getOnMatch, getOnMismatch, setOnMatch, setOnMismatch
-
-
-
-
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:
decidein classch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
-
start
public void start()
- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle- Overrides:
startin classch.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-
-
-