[
https://issues.apache.org/jira/browse/KARAF-5790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16698080#comment-16698080
]
Jean-Baptiste Onofré commented on KARAF-5790:
---------------------------------------------
Hmm, I don't have any issue with {{log:display}} or {{log:tail}} command. I'm
using your XML in {{etc/log4j2.xml}}, and {{etc/org.ops4j.pax.logging.cfg}}
file contains:
{code}
# Colors for log level rendering
color.fatal = bright red
color.error = bright red
color.warn = bright yellow
color.info = bright green
color.debug = cyan
color.trace = cyan
org.ops4j.pax.logging.log4j2.config.file=${karaf.etc}/log4j2.xml
{code}
I'm testing with Karaf 4.1.x.
> Using XML log4j configuration file causes logging to crash
> ----------------------------------------------------------
>
> Key: KARAF-5790
> URL: https://issues.apache.org/jira/browse/KARAF-5790
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.0, 4.1.5
> Reporter: Allen Bagwell
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Fix For: 4.2.2, 4.1.7
>
>
> [Discussed
> here|http://karaf.922171.n3.nabble.com/Karaf-4-1-5-and-log-configuration-td4052606.html]
> on the mailing list.
> From 4.1.5 onward, using an XML configuration file (as opposed to a
> properties file) for log4j in the karaf/etc folder causes the logging
> mechanism to crash when issuing log:* commands from the client.
> Possibly related to KARAF-5528 and KARAF-5559.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)