cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Set a query logging level
Date Thu, 24 Sep 2009 19:48:23 GMT
Per query logging levels existed in the early versions of Cayenne, but  
got killed quite some time ago. IMO, though occasionally convenient,  
this goes against good logging practices. What case are you trying to  
address with it?


On Sep 24, 2009, at 10:37 PM, Lawrence Gerstley wrote:
> Hi,
> I've been searching through documentation and Googling for some time  
> to see how to elevate the logging level of an individual query, and  
> came across the type of function is was looking for, but which seems  
> to be more hypothetical than real (i.e., it's not in the Query  
> object):
> SelectQuery sq = new SelectQuery(Some.class);
> sq.setLoggingLevel("INFO");
> I've got log4j working in 3.0 and the configuration file working  
> just fine. Is there some simple example of elevating just one query.
> Also, just an FYI: the Wiki link on the home page seems to be quite  
> dead.
> Thanks in advance,
> Lawrence

View raw message