tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Log4J2 and Tomcat (Was: Override logging)
Date Tue, 08 Oct 2013 19:27:07 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jordan,

On 10/8/13 2:54 PM, Jordan Michaels wrote:
> Interesting that you're bringing this up, I'm researching similar
> things for a project. Specifically, I'm looking over the
> documentaiton at the bottom of the page here regarding log4j: 
> http://tomcat.apache.org/tomcat-7.0-doc/logging.html
> 
> ...and log4j 1.2.9 seems to work great. Has anyone tried this same 
> method with the upcoming log4j2? IE: would the current
> tomcat-juli.jar, and tomcat-juli-adapters.jar work with log4j2?

Probably not. I haven't looked at the auto-detection code that
Tomcat's "full Apache Commons Logging implementation [which is] thus
is able to discover the presense of log4j and configure itself" uses,
but I suspect it will require some tweaks before you can switch. It
will likely require the use of log4j-1.2-api.jar as well.

Interested in giving it a try?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSVFyLAAoJEBzwKT+lPKRYty4QAMtoONKoQOWkzAw8smyGTHJX
GCpyqNsKnEQnkhnk+Vah7lcl0JAC51NW8riGCh2I2Yb08XJODhXN8qu5a5WsbloH
15GcXGlUKffhASWqmbHgTC+cRemTkVEKyp7fOZzIfI/vW0fG7lvYn1nKUhnhVNej
0C2ryHFxJxY3xffX5MwJGfM6hhVMPonopk9eoFKCBaJqxeDLsJVO9mti8oX07Vu4
tusI1gjWMGK0upXBwkFdu8mvQwehy94/W5ALt3tdmI5egm+i625Mwjlt92XA480f
0kSku45MD2l+EXd0p/Wg6rq3/FAxhspEcUEEfwF3ywJFzC5wSq48jhy7RoLKmB34
3zQyYuJARBgp/4Sj+7U1Iw1VSGu6qi6I4iq2AhxILExPAACSvW3IxsJH1bZDCOCp
O8xDV9HHwSLqRUMvXalvs9tmSJ1DbQpmz3VPqTn2Lb6+toxJXaJZ2/yEu0VtngyR
TyavmoBJ/odosIoOv7+mZ3yyVy+3M7II1Ro20bd9a3UxgEtnpKFsaLG4X5HSL2x0
AVFLzDryzkpwHzbNATql4gTg8Drb4r7D5OV6I6vLPwjoXqiJbyQA/T95tqFFzZLA
w3MKxP2Fi/GcHeeJfzddQ/mA3VWsPB93ysgaUohHec3NbofQw6ylzyofvGxYZoa5
n/oNzWPvxpcUiEaxSU6S
=hzJM
-----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