Apache JDO Project - C3P0 log4j initialization patch

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > August 2005 > C3P0 log4j initialization patch





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author C3P0 log4j initialization patch
Michael Watzek

2005-08-11, 5:45 pm

Hi,

attached you find a patch fixing the C3P0 log4j initialization.

Andy, I decided to specify info logging on v2 level rather than
explicitly specifiying for v2.c3p0 and v2.resourcepool because there are
more loggers in subpackages of v2.

Regards,
Michael
--
-------------------------------------------------------------------
Michael Watzek Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de Buelowstr. 66
Tel.: ++49/30/235 520 36 10783 Berlin - Germany
Fax.: ++49/30/217 520 12 http://www.spree.de/
-------------------------------------------------------------------

Craig Russell

2005-08-11, 5:45 pm

Hi Michael,

Thanks for looking into this. I've been irritated by the log error
messages and didn't have time to research it.
Could you please add some doc that explains the logging properties? I
don't know offhand where it belongs, but I think it needs to be
somewhere that folks can access when they want to run the project.

Where does setup info like logging, running a single test (thanks,
maven) etc. belong???

Craig

On Aug 11, 2005, at 8:32 AM, Michael Watzek wrote:

> Hi,
>
> attached you find a patch fixing the C3P0 log4j initialization.
>
> Andy, I decided to specify info logging on v2 level rather than
> explicitly specifiying for v2.c3p0 and v2.resourcepool because
> there are more loggers in subpackages of v2.
>
> Regards,
> Michael
> --
> -------------------------------------------------------------------
> Michael Watzek Tech@Spree Engineering GmbH
> mailto:mwa.tech@spree.de Buelowstr. 66
> Tel.: ++49/30/235 520 36 10783 Berlin - Germany
> Fax.: ++49/30/217 520 12 http://www.spree.de/
> -------------------------------------------------------------------
> Index: test/conf/logging.properties
> ========================================
===========================
> --- test/conf/logging.properties (revision 231468)
> +++ test/conf/logging.properties (working copy)
> @@ -64,3 +64,6 @@
>
> log4j.category.JPOX.Enhancer=INFO, A1
> log4j.category.JPOX.SchemaTool=INFO, A1
> +
> +# C3P0 categories
> +log4j.category.com.mchange.v2=INFO, A1
>


Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com