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

RegexFilter does not match multiline log messages

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.0-rc2
    • None
    • Filters
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rgoers Ralph Goers
            phil.wray phil wray

            Dates

              Created:
              Updated:

              Slack

                Issue deployment