Constructor and Description |
---|
Log4jFilter(org.apache.log4j.spi.Filter filterChain,
boolean defaultResult)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggable(LogRecord record)
Determine if the record is loggable.
|
public Log4jFilter(org.apache.log4j.spi.Filter filterChain, boolean defaultResult)
filterChain
- the log4j filter chaindefaultResult
- the result to use if the filter chain returns Filter.NEUTRAL
public boolean isLoggable(LogRecord record)
isLoggable
in interface Filter
record
- the log recordtrue
if it is loggableCopyright © 2019 JBoss by Red Hat. All rights reserved.