Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-696

RegexFilter does not match multiline log messages

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0-rc2
    • Fix Version/s: None
    • Component/s: Filters
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              ralph.goers@dslextreme.com Ralph Goers
              Reporter:
              phil.wray phil wray
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: