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

Allow JsonTemplateLayout to use a PatternSelector to format the message.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.14.1
    • None
    • JsonTemplateLayout
    • None

    Description

      JsonTemplateLayout supports specifying a pattern to format the message. Other Layouts also support using a PatternSelector to select the pattern to use based on something in the log event. JsonTemplateLayout should also support this. Since the PatternSelector is a Plugin a suggestion might be to allow the PatternSelector to be defined in log4j2.xml and then reference it if one is defined instead of using a pattern in the template.

      Attachments

        Activity

          People

            vy Volkan Yazici
            rgoers Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: