[
https://issues.apache.org/jira/browse/LOG4J2-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053841#comment-14053841
]
Gary Gregory edited comment on LOG4J2-696 at 7/7/14 4:50 PM:
-------------------------------------------------------------
I committed a version that allows a String[] of Pattern compile option names to
be passed in, which match the name of any int defined on the Pattern class.
This should be future/past proof to allow you to use whatever is defined on
your Java version.
This is available in trunk.
Please test it out report how that matches your needs.
was (Author: garydgregory):
I committed a version that allows a String[] of Pattern compile option names to
be passed in, which match the name of any int defined on the Pattern class.
This should be future/past proof to allow you to use whatever is defined on
your Java version.
This is available in trunk.
> RegexFilter does not match multiline log messages
> -------------------------------------------------
>
> Key: LOG4J2-696
> URL: https://issues.apache.org/jira/browse/LOG4J2-696
> Project: Log4j 2
> Issue Type: Bug
> Components: Filters
> Affects Versions: 2.0-rc2
> Reporter: phil wray
> Attachments: RegexFilterTest.java
>
>
> RegexFilter is constructed with a pattern, but pattern does not support
> multiline matches, so impossible for the filter to ever match a multiline msg.
> Should maybe provide a multline="x attribute whichi should default to true
> and result in the patter being compiled as such:
> Pattern pattern = Pattern.compile(".*line.*", Pattern.DOTALL);
> See attached UnitTest illustrating failure
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]