Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 65482 invoked from network); 17 Jun 2010 12:31:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Jun 2010 12:31:02 -0000 Received: (qmail 55500 invoked by uid 500); 17 Jun 2010 08:31:01 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 55372 invoked by uid 500); 17 Jun 2010 08:30:59 -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 55316 invoked by uid 99); 17 Jun 2010 08:30:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jun 2010 08:30:58 +0000 X-ASF-Spam-Status: No, hits=-0.8 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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, 17 Jun 2010 08:30:52 +0000 Received: (qmail 30988 invoked from network); 17 Jun 2010 08:30:30 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 17 Jun 2010 08:30:30 -0000 Message-Id: <82D93953-4A3A-477E-8D22-263C8D4DDEC1@objectstyle.org> From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: <4C19DC08.6040905@tsi-solutions.nl> 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: cayenne log4j configuration Date: Thu, 17 Jun 2010 11:30:29 +0300 References: <4C19DC08.6040905@tsi-solutions.nl> X-Mailer: Apple Mail (2.936) From what I can tell, there's probably no way around other than either configuring the appenders or moving to 3.0. Andrus On Jun 17, 2010, at 11:25 AM, Hans Pikkemaat wrote: > Hi, > > I'm using cayenne 2.0.4. and have my own log4j.xml configuration. > My configuration does not have any appenders for the root logger. > > Looking at the isLoggingConfigured method in the Configuration class > I see > that cayenne assumes that log4j is not setup when the root logger > does not > have any appenders. > > So what is happening now is that after processing my log4j > configuration file > cayenne is also processing its configuration file. > > See log4j debug logs: > > log4j: Using URL [file:/data/projects/common/paymentservice/model/ > trunk/target/test-classes/log4j.xml] for automatic log4j > configuration. > . > . > log4j: Reading configuration from URL file:/data/projects/common/ > paymentservice/model/trunk/target/test-classes/.cayenne/cayenne- > log.properties > > Is there a way around this except from moving to cayenne 3? > > tx > > Hans >