Class SubstituteFilter
java.lang.Object
org.jboss.logmanager.filters.SubstituteFilter
- All Implemented Interfaces:
Filter
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubstituteFilter(String patternString, String replacement, boolean replaceAll) Construct a new instance.SubstituteFilter(Pattern pattern, String replacement, boolean replaceAll) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLoggable(LogRecord record) Apply the filter to the given log record.
-
Field Details
-
pattern
-
replacement
-
replaceAll
private final boolean replaceAll
-
-
Constructor Details
-
SubstituteFilter
-
SubstituteFilter
-
-
Method Details
-
isLoggable
Apply the filter to the given log record. Theformat stylewill always be set toExtLogRecord.FormatStyle.NO_FORMATas the formatted message will be the one used in the replacement.- Specified by:
isLoggablein interfaceFilter- Parameters:
record- the log record to inspect and modify- Returns:
truealways
-