Package org.nuxeo.runtime.test.runner
Class LogCaptureFeature.DefaultFilter
- java.lang.Object
-
- org.nuxeo.runtime.test.runner.LogCaptureFeature.DefaultFilter
-
- All Implemented Interfaces:
LogCaptureFeature.Filter
- Enclosing class:
- LogCaptureFeature
protected static class LogCaptureFeature.DefaultFilter extends Object implements LogCaptureFeature.Filter
Default Nuxeo filter which takes a logger name and a log level to accept only events matching both.Null or empty criteria are converted to match all of them.
For instance, filter will match all loggers if given logger name is null or empty.
- Since:
- 8.10
-
-
Field Summary
Fields Modifier and Type Field Description protected String
loggerName
protected org.apache.logging.log4j.Level
logLevel
-
Constructor Summary
Constructors Constructor Description DefaultFilter(String loggerName, String logLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(org.apache.logging.log4j.core.LogEvent event)
LogCaptureFeature
will capture the event if it does match the implementation condition.
-
-
-
Field Detail
-
loggerName
protected final String loggerName
-
logLevel
protected final org.apache.logging.log4j.Level logLevel
-
-
Method Detail
-
accept
public boolean accept(org.apache.logging.log4j.core.LogEvent event)
Description copied from interface:LogCaptureFeature.Filter
LogCaptureFeature
will capture the event if it does match the implementation condition.- Specified by:
accept
in interfaceLogCaptureFeature.Filter
-
-