Is there a way to tell log4j to output its configuration?
Logback has such a feature; there are ties between log4j and logback so the log4j guys might have implemented that, too.

-----Original Message-----
From: cghersi
Sent: Thursday, June 14, 2012 11:51 AM
To: user@cayenne.apache.org
Subject: Cannot correctly configure log4j to log Cayenne stuff

Hi all,

I started using Cayenne two years ago, and I've never understand how to correctly configure logging feature.
I'm using Cayenne 3.0 under OSGi environment, and I also use log4j in my environment.
In my log4j.xml XML configuration file I added this entry:
<logger name="org.apache.cayenne.access.QueryLogger" additivity="false">
<level value="error"/>
<appender-ref ref="File" />
<appender-ref ref="console" />

but nevertheless I can see a huge amount of logs from QueryLogger class.
I tried to put this file everywhere in my PC, but same results everytime! :(

Is there any configuration I need to add during the configuration of Cayenne?

Thank you very much!

View this message in context: http://cayenne.195.n3.nabble.com/Cannot-correctly-configure-log4j-to-log-Cayenne-stuff-tp4024280.html
Sent from the Cayenne - User mailing list archive at Nabble.com.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 16 | next ›
Discussion Overview
groupuser @
postedJun 14, '12 at 9:51a
activeJun 20, '12 at 2:11p



site design / logo © 2022 Grokbase