You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2021/01/25 21:39:00 UTC

[jira] [Updated] (LOG4J2-3004) Migrate JsonTemplateLayout static resolvers to plugins

     [ https://issues.apache.org/jira/browse/LOG4J2-3004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volkan Yazici updated LOG4J2-3004:
----------------------------------
    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!

 

  was:
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!

 


> Migrate JsonTemplateLayout static resolvers to plugins
> ------------------------------------------------------
>
>                 Key: LOG4J2-3004
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3004
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: JsonTemplateLayout
>            Reporter: Volkan Yazici
>            Priority: Minor
>             Fix For: 2.15.0
>
>
> 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!
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)