cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: pruning the querylogger
Date Sun, 05 Apr 2009 08:37:02 GMT
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.


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.

View raw message