Re: Remove SQL logging in M2 or M3

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Feb 05 2008 - 12:07:21 EST

  • Next message: Alexander Lamb (dev): "Re: Remove SQL logging in M2 or M3"

    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)" <alam..ac.com> 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
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Feb 05 2008 - 12:07:56 EST