tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat JULI resets JDK logging?
Date Tue, 09 Feb 2010 22:37:55 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Henning,

On 2/7/2010 6:26 PM, Henning Blohm wrote:
> I am using JDK logging and I would like to make sure that Tomcat JULI
> does not modify logging runtime configuration that is not owned by
> tomcat or web apps running on tomcat.
> 
> Here is what happens:
> 
> When adding a standard context and removing it again, it seems that JULI
> resets or modifies otherwise the current logging configuration.
> 
> For example: This code:
> 
> <code>
> logger.setLevel(Level.INFO);
> logger.info("adding...");
> StandardContext sc = addContext(c); 
> logger.info("added");
> System.out.println(logger.getLevel());		
> logger.info("removing...");
> removeContext(c,sc);
> logger.info("removed");
> System.out.println(logger.getLevel());
> </code>

Have you tried creating a separate ClassLoader for the purposes of
segregating Tomcat? IF you do that, it's likely that JULI won't reset
your Java logging configuration.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktx48MACgkQ9CaO5/Lv0PB0GgCfdcelHnlaJxHoKQJGj9ay3Xc2
DSYAn1DbCvS2eFmn4JA/+KT3jKeiF3YB
=aSJk
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message