You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Matt Pavlovich (Jira)" <ji...@apache.org> on 2021/12/27 18:35:00 UTC

[jira] [Updated] (KARAF-7307) Default log4j2 config to xml or json

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

Matt Pavlovich updated KARAF-7307:
----------------------------------
    Description: 
The properties configuration for log4j2 is complex to follow and the documentation for advanced features is fragmented.

Proposal: Change Karaf 4.3.x (or 4.4.x) default to use the XML (or JSON) format by default.

Notes:

1. Documentation for the properties format is fragmented and incomplete— especially for advanced features such as routing, etc
2. XML format is the more natural format for log4j2
3. Allow for developers targeting karaf runtime to use the same log4j2.xml config file in their dev projects that is used in karaf runtime (using a org.ops4j.pax.logging.cfg requires developers to add add’l configuration to their code projects)


  was:
The properties configuration for log4j2 is complex to follow and the documentation for advanced features is fragmented.

Proposal: Change Karaf 4.3.x (or 4.4.x) default to use the XML (or JSON) format by default.


> Default log4j2 config to xml or json
> ------------------------------------
>
>                 Key: KARAF-7307
>                 URL: https://issues.apache.org/jira/browse/KARAF-7307
>             Project: Karaf
>          Issue Type: Proposal
>            Reporter: Matt Pavlovich
>            Priority: Major
>
> The properties configuration for log4j2 is complex to follow and the documentation for advanced features is fragmented.
> Proposal: Change Karaf 4.3.x (or 4.4.x) default to use the XML (or JSON) format by default.
> Notes:
> 1. Documentation for the properties format is fragmented and incomplete— especially for advanced features such as routing, etc
> 2. XML format is the more natural format for log4j2
> 3. Allow for developers targeting karaf runtime to use the same log4j2.xml config file in their dev projects that is used in karaf runtime (using a org.ops4j.pax.logging.cfg requires developers to add add’l configuration to their code projects)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)