You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2019/07/25 14:19:00 UTC

[jira] [Updated] (KARAF-4137) Prepare log4j2 default support and document

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

Jean-Baptiste Onofré updated KARAF-4137:
----------------------------------------
    Fix Version/s: 4.2.7
                   4.3.0

> Prepare log4j2 default support and document
> -------------------------------------------
>
>                 Key: KARAF-4137
>                 URL: https://issues.apache.org/jira/browse/KARAF-4137
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.3.0, 4.2.7
>
>
> It would be great to prepare and document the log4j2 support:
> To enable it, you have to:
> 1. add pax-logging-log4j in etc/startup.properties
> 2. update etc/org.ops4j.pax.logging.cfg with the following property:
> org.ops4j.pax.logging.log4j2.config.file = ${karaf.etc}/log4j2.yaml
> # Use asynchronous logger for all loggers
> #org.ops4j.pax.logging.log4j2.async = false
> NB: you can use other format too
> 3. create your logger/appender in log4j2.yaml (especially the rootLogger) 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)