Package chapters.filters
Class SampleTurboFilter
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.classic.turbo.TurboFilter
-
- chapters.filters.SampleTurboFilter
-
- All Implemented Interfaces:
ContextAware,LifeCycle
public class SampleTurboFilter extends TurboFilter
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Stringmarker(package private) org.slf4j.MarkermarkerToAccept-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description SampleTurboFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterReplydecide(org.slf4j.Marker marker, Logger logger, Level level, java.lang.String format, java.lang.Object[] params, java.lang.Throwable t)Make a decision based on the multiple parameters passed as arguments.java.lang.StringgetMarker()voidsetMarker(java.lang.String markerStr)voidstart()-
Methods inherited from class ch.qos.logback.classic.turbo.TurboFilter
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
-
-
-
-
Method Detail
-
decide
public FilterReply decide(org.slf4j.Marker marker, Logger logger, Level level, java.lang.String format, java.lang.Object[] params, java.lang.Throwable t)
Description copied from class:TurboFilterMake a decision based on the multiple parameters passed as arguments. The returned value should be one of,FilterReply.DENY, orFilterReply.NEUTRAL.FilterReply.ACCEPT- Specified by:
decidein classTurboFilter- Returns:
-
getMarker
public java.lang.String getMarker()
-
setMarker
public void setMarker(java.lang.String markerStr)
-
start
public void start()
- Specified by:
startin interfaceLifeCycle- Overrides:
startin classTurboFilter
-
-