You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by joeleclems <jo...@free.fr> on 2014/10/31 10:22:40 UTC
log4j managed by webapp
Hi,
I'm using tomee+ 1.7.0 and succeed in configuring log4j as describe here :
http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-td4670622.html
to resume :
- openejb.log.factory=log4j + openejb.external.logger=true in
system.properties
- add log4j.jar in /lib directory
- add log4j.properties in /lib directory
I also have a log4j.properties in my webapp and would like to manage all
logs of my application (cxf, openejb...) in this file : is-it possible?
i try to add theses line in log4j.properties in the webapp:
log4j.logger.org.apache.cxf=WARN
log4j.logger.org.apache.cxf.interceptor=WARN
log4j.logger.org.apache.cxf.interceptor.LoggingInInterceptor=warn
log4j.logger.org.apache.cxf.interceptor.LoggingOutInterceptor=warn
log4j.additivity.org.apache.cxf=false
but theses instructions are not used.
i try to put the same lines in log4j.properties in tomee lib directory, and
it's working.
So... how can i make theses instruction working when managed in the
webapp/.../log4j.properties?
Thanks in advance
Clément
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/log4j-managed-by-webapp-tp4672700.html
Sent from the TomEE Users mailing list archive at Nabble.com.