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

Create a SubstitutionResolver for JsonTemplateLayout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • JsonTemplateLayout
    • None

    Description

      A "SubstitutionResolver" ​for JsonTemplateLayout would be useful.

      This resolver would be combined with another resolver, and would allow for "mapping" values output by another resolver to different values.

      For example, a SubstitutionResolver could map a level resolver output from WARN to WARNING.

      A simple text mapping (perhaps with a case-insensitive flag), with pass-through for unsubstituted values, would probably be the best approach. More complicated scenarios could be addressed with another resolver e.g. RegexReplaceResolver.

      Attachments

        Activity

          People

            vy Volkan Yazici
            rocketraman Raman Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: