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

Migrate JsonTemplateLayout static resolvers to plugins

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.15.0
    • Component/s: JsonTemplateLayout
    • Labels:
      None

      Description

      JsonTemplateLayout uses a static list of resolvers. While this makes it impossible 1 to update the set of resolvers used for the layout, e.g., adding new user-provided custom resolvers, it is also old fashioned. Log4j has a great plugin system and it is leveraged by PatternLayout exactly for the same thing. This story aims to bring this improvement to JsonTemplateLayout too.

      1 We can still allow the injection of a custom resolver factory in the layout configuration, but again, there is a better way to do it: plugins!

       

        Attachments

          Activity

            People

            • Assignee:
              vy Volkan Yazici
              Reporter:
              vy Volkan Yazici
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: