As a background to what Kevin just said, Cayenne itself no longer attempts to configure Log4J (something it did prior to 3.0). Log4J is optional and is expected to be configured by the user.

    http://cayenne.apache.org/doc/guide-to-30-features.html

(search for "logging" on this page).

Andrus


On Feb 5, 2008, at 6:32 PM, Kevin Menard wrote:

How are you bootstrapping your log4j configuration? I have something like
the following before creating a DC:

org .apache .log4j.PropertyConfigurator.configure(getClass().getResource("/log
4j.properties"));

--
Kevin


On 2/5/08 11:29 AM, "Alexander Lamb (dev)" <[EMAIL PROTECTED]> wrote:

Hello List,

I don't seem to be able to stop Cayenne log all the SQL (3.0M2 or M3).

I have the following in my log4j.properties, but it doesn't seem to be
taken into account!

log4j.category.org.apache.cayenne.access.QueryLogger = WARN
log4j.category.org.apache.cayenne.conf = WARN
log4j.category.org.apache.cayenne.util = WARN

Thanks,

Alex




Reply via email to