Class StringMatchFilter.Builder
java.lang.Object
org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder<StringMatchFilter.Builder>
org.apache.logging.log4j.core.filter.StringMatchFilter.Builder
- All Implemented Interfaces:
Builder<StringMatchFilter>
- Enclosing class:
- StringMatchFilter
public static class StringMatchFilter.Builder
extends AbstractFilter.AbstractFilterBuilder<StringMatchFilter.Builder>
implements Builder<StringMatchFilter>
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder
ATTR_ON_MATCH, ATTR_ON_MISMATCH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.setMatchString
(String text) Deprecated.Sets the text to search in event messages.Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder
asBuilder, getOnMatch, getOnMismatch, setOnMatch, setOnMismatch
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setMatchString
Deprecated.since 2.25.0, usesetText(java.lang.String)
instead. -
setText
Sets the text to search in event messages.- Parameters:
text
- the text to search in event messages.- Returns:
- this instance.
- Since:
- 2.25.0
-
build
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<StringMatchFilter>
- Returns:
- the configured instance.
-
setText(java.lang.String)
instead.