Class ThresholdLevelFilterFactory
java.lang.Object
io.dropwizard.logging.common.filter.ThresholdLevelFilterFactory
- All Implemented Interfaces:
LevelFilterFactory<ch.qos.logback.classic.spi.ILoggingEvent>
public class ThresholdLevelFilterFactory
extends Object
implements LevelFilterFactory<ch.qos.logback.classic.spi.ILoggingEvent>
Factory that creates a
Filter of type ILoggingEvent-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>build(ch.qos.logback.classic.Level threshold) Creates and starts aFilterfor the given threshold.
-
Constructor Details
-
ThresholdLevelFilterFactory
public ThresholdLevelFilterFactory()
-
-
Method Details
-
build
public ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent> build(ch.qos.logback.classic.Level threshold) Creates and starts aFilterfor the given threshold.- Specified by:
buildin interfaceLevelFilterFactory<ch.qos.logback.classic.spi.ILoggingEvent>- Parameters:
threshold- The minimum event level for this filter.- Returns:
- a new, started
Filter
-