Title: html versie van handtekening
Hi,

I found a workaround.

I do create an appender on the root with level fatal but set the additivity flag to false
on all child loggers.

This effectively means that the logging stops there and will not reach the root logger.

All the other logs that are not picked up by the loggers will go to the root but because
of level=fatal this will not cause a lot of log entries.

tx

Hans

On 6/17/10 10:30 AM, Andrus Adamchik wrote:
 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

    
  

--
TSi Solutions
Neptunusstraat 25
7521 WC Enschede

Tel. +31 (0)88 - 25 00 000
Fax. +31 (0)88 - 25 00 122
Hans Pikkemaat
Java Developer (Services Team)
E-mail:
  www.tsi-solutions.nl
www.toeristiek.nl
10 jaar TSi Solutions
... marktleider in het automatiseren en outsourcen van werkprocessen in de reisbranche
... toonaangevende partij voor het verzamelen, structureren en beschikbaarstellen van reiscontent
... Reisrevue Innovatieveer 2008 - Veervolle vermelding
... Winnaar Reisrevue Innovatieveer 2009
... Winnaar Reisrevue Innovatieveer 2010
... Top 20 positie in 2008 Deloitte Technology Fast50 Nederland
... Top 10 positie in 2009 Deloitte Technology Fast50 Benelux
... Top 100 positie in 2009 Deloitte Technology Fast500 EMEA
TSi Solutions is de handelsnaam van Travel Service International b.v.[KvK 06091935]
DISCLAIMER: De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde.
Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren.
The information contained in this message may be confidential and is intended to be exclusively for the addressee.
Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail.

Reply via email to