Fix RegexFilter
pattern flags
#3086
Labels
bug
Incorrect, unexpected, or unintended behavior of existing code
RegexFilter
pattern flags
#3086
In the Log4j 2.x documentation for the RegexFilter:
https://logging.apache.org/log4j/2.x/manual/filters.html#RegexFilter
The only two configuration attributes are "regex" and "useRawMsg" (and the common filter attributes onMatch/onMismatch).
In the RegExFilter @pluginfactory there is a nested element for a set of Strings which is not mentioned in the documentation:
If I understand correctly one can provide field names from the Pattern class here: (CASE_INSENSITIVE, COMMENTS, etc.).
The example in the Plugin Reference for the RegexFilter shows an example of nested strings but is not very clear with "a-String-implementation":
Is it?:
A usage example would be helpful.
Maybe this API is not really "public"? In the log4j-core-test RegexFilter test it seems the RegexFilter is never tested with anything but a null value for the patternFlags.
The text was updated successfully, but these errors were encountered: