Re: pruning the querylogger

From: Bryan Lewis (jbryanlewi..mail.com)
Date: Sun Apr 05 2009 - 21:22:55 EDT

  • Next message: Borut Bolčina: "API wish(es)"

    Cool, works well. Thanks.

    On 4/5/09, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > 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 - 21:23:30 EDT