Constructor and Description |
---|
SubstituteFilter(Pattern pattern,
String replacement,
boolean replaceAll)
Construct a new instance.
|
SubstituteFilter(String patternString,
String replacement,
boolean replaceAll)
Construct a new instance.
|
public SubstituteFilter(Pattern pattern, String replacement, boolean replaceAll)
pattern
- the pattern to matchreplacement
- the string replacementreplaceAll
- true
if all occurrances should be replaced; false
if only the first occurrancepublic SubstituteFilter(String patternString, String replacement, boolean replaceAll)
patternString
- the pattern to matchreplacement
- the string replacementreplaceAll
- true
if all occurrances should be replaced; false
if only the first occurrancepublic boolean isLoggable(LogRecord record)
isLoggable
in interface Filter
record
- the log record to inspect and modifytrue
alwaysCopyright © 2012 JBoss by Red Hat. All Rights Reserved.