Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 72980 invoked from network); 24 Sep 2009 19:48:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 19:48:56 -0000 Received: (qmail 87455 invoked by uid 500); 24 Sep 2009 19:48:56 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 87439 invoked by uid 500); 24 Sep 2009 19:48:56 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 87429 invoked by uid 99); 24 Sep 2009 19:48:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 19:48:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Sep 2009 19:48:47 +0000 Received: (qmail 6046 invoked from network); 24 Sep 2009 19:48:30 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 24 Sep 2009 19:48:30 -0000 Message-Id: From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: <8F9B083F-D72B-4D21-BF97-A7E295ECE642@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Set a query logging level Date: Thu, 24 Sep 2009 22:48:23 +0300 References: <8F9B083F-D72B-4D21-BF97-A7E295ECE642@gmail.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org 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? Andrus 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 > >