I understood and it will work with LogMBean or LogService.

Regards
JB

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://wwx.talend.com

----- Reply message -----
From: "xav" <[email protected]>
To: <[email protected]>
Subject: Karaf 2.3.5 Set the log Level programmatically
Date: Fri, Jul 11, 2014 1:27 pm


Hi JB,

I want to bring a precision:
In my bundle, I want doing programmatically, than the same things when I
modify the org.ops4j.pax.logging.cfg file, i.e.

log4j.logger.a.b.c=DEBUG, toto
log4j.appender.toto=org.apache.log4j.RollingFileAppender
....
....

after some code 
 
log4j.logger.a.b.c=INFO, toto
log4j.appender.toto=org.apache.log4j.RollingFileAppender
....
....

Regards



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-2-3-5-Set-the-log-Level-programmatically-tp4034161p4034164.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to