[
https://issues.apache.org/jira/browse/LOG4J2-3138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17405617#comment-17405617
]
Ralph Goers commented on LOG4J2-3138:
-------------------------------------
Actually, I think it would be an interesting feature for JsonTemplateLayout to
be able to use a Java class, perhaps with annotations, as its template.
> Define a custom model for a json layout for creating custom json logs output
> ----------------------------------------------------------------------------
>
> Key: LOG4J2-3138
> URL: https://issues.apache.org/jira/browse/LOG4J2-3138
> Project: Log4j 2
> Issue Type: New Feature
> Components: Core
> Reporter: Alireza Vahedi
> Assignee: Volkan Yazici
> Priority: Major
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> In current json layout user can not define a custom json structure for json
> logs. For such purpose they have to define new layout. Why new layout is
> required when just the model structure of json has been changed?
> I think we need a enhanced json layout that gets some class as targetĀ
> structure for generating json of logs, and user can configure it in log4j2
> xml configurable file.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)