Re: pruning the querylogger

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Apr 05 2009 - 04:37:02 EDT

  • Next message: Bryan Lewis: "Re: pruning the querylogger"

    Hi Bryan,

    Log4J itself should be used to configure things like this. You can
    have a custom appender for instance with some thread-local API to turn
    it on and off.

    Andrus

    On Apr 3, 2009, at 10:50 PM, Bryan Lewis wrote:

    > This might be an obvious question but I couldn't find it in the list
    > and docs.
    >
    > In our old Cayenne-2-based apps, we selectively pruned the query
    > logging to avoid cluttering our log files with uninteresting
    > repetitive queries. We used QueryLogger.setLoggingLevel() before each
    > performQuery(). Yeah, it was a bit tedious and I'm not surprised to
    > see setLoggingLevel() has gone away. But if we still want to prune
    > the logging, how do we do it?
    >
    > Thanks.
    >



    This archive was generated by hypermail 2.0.0 : Sun Apr 05 2009 - 04:37:34 EDT