protected static class LogCaptureFeature.DefaultFilter extends Object implements LogCaptureFeature.Filter
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.
Modifier and Type | Field and Description |
---|---|
protected String |
loggerName |
protected org.apache.logging.log4j.Level |
logLevel |
Constructor and Description |
---|
DefaultFilter(String loggerName,
String logLevel) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.apache.logging.log4j.core.LogEvent event)
LogCaptureFeature will capture the event if it does match the implementation condition. |
protected final String loggerName
protected final org.apache.logging.log4j.Level logLevel
public DefaultFilter(String loggerName, String logLevel)
public boolean accept(org.apache.logging.log4j.core.LogEvent event)
LogCaptureFeature.Filter
LogCaptureFeature
will capture the event if it does match the implementation condition.accept
in interface LogCaptureFeature.Filter
Copyright © 2019 Nuxeo. All rights reserved.