[ https://issues.apache.org/jira/browse/KARAF-5790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16612414#comment-16612414 ]
Allen Bagwell commented on KARAF-5790: -------------------------------------- For reference, here's the XML config (also posted in the discussion thread): <Configuration> <Properties> <Property name="layout">%d\{dd-MMM-yyyy HH:mm:ss.SSS} [%-5.5p] %-16.16t | %-20.20c\{1} | %X\{bundle.id} -%X\{bundle.name} - %X\{bundle.version} | %m%n</Property> </Properties> <Appenders> <Console name="Console"> <PatternLayout pattern="${layout}"/> </Console> <RollingRandomAccessFile name="KARAF_LOG_FILE" append="true" fileName="${sys:karaf.data}/log/karaf.log" filePattern="${sys:karaf.data}/log/karaf.log.%i"> <PatternLayout pattern="${layout}"/> <Policies> <SizeBasedTriggeringPolicy size="16MB"/> </Policies> </RollingRandomAccessFile> <RollingRandomAccessFile name="AUDIT_LOG_FILE" append="true" fileName="${sys:karaf.data}/log/security-audit.log" filePattern="${sys:karaf.data}/log/security-audit.log.%i"> <PatternLayout pattern="${layout}"/> <Policies> <SizeBasedTriggeringPolicy size="16MB"/> </Policies> </RollingRandomAccessFile> <PaxOsgi name="PAX_OSGI" filter="*"/> </Appenders> <Loggers> <Logger name="org.apache.aries.spifly" level="warn" additivity="false"> <AppenderRef ref="KARAF_LOG_FILE"/> </Logger> <Logger name="org.apache.sshd" level="info" additivity="false"> <AppenderRef ref="KARAF_LOG_FILE"/> </Logger> <Logger name="org.apache.karaf.jaas.modules.audit" level="info" additivity="false"> <AppenderRef ref="AUDIT_LOG_FILE"/> </Logger> <Root level="info"> <AppenderRef ref="KARAF_LOG_FILE"/> <AppenderRef ref="PAX_OSGI"/> </Root> </Loggers> </Configuration> > 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-core, karaf-logging > Affects Versions: 4.2.0, 4.1.5 > Reporter: Allen Bagwell > Priority: Minor > > [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)