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

Add RepeatPatternConverter

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 2.14.1
    • 2.15.0
    • Pattern Converters
    • None

    Description

      It is frequently desirable to add strings of repeating characters to a logging event to highlight it when viewing the log. To do this currently you have to manually type in the characters into the pattern which can make the pattern fairly long. This will add a pattern converter that can be specified as R{#}

      {10}

      , which is considerably easier for the user than having to include ########## especially if it appears twice in the message.

      Attachments

        Activity

          People

            rgoers Ralph Goers
            rgoers Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: