karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: How do you configure logger additivity with the log:tail console command?
Date Fri, 06 May 2016 05:04:14 GMT
Hi Matt,

log:* commands uses the sift appender.

Did you change the appenders (console, out and sift) ?

In your case, the log4j configuration doesn't look correct for me. In 
etc/org.ops4j.pax.logging.cfg you should have:

log4j.rootLogger=INFO, out, osgi:*


You don't have to provide the appender on the com.example logger.


On 05/06/2016 12:27 AM, Matt Sicker wrote:
> I'm having additivity-related issues where if I enable additivity,
> certain log messages will get output in the console, but get output
> twice in the log file. If I disable additivity, then those log messages
> are no longer duplicated in the file, but they're no longer output by
> log:tail.
> I'm using Karaf 3.0.4. Example config:
> log4j.rootLogger = INFO, out
> log4j.logger.com.example = DEBUG, out
> log4j.additivity.com.example = false
> --
> Matt Sicker <boards@gmail.com <mailto:boards@gmail.com>>

Jean-Baptiste Onofré
Talend - http://www.talend.com

View raw message