tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Logging Best Practices on RHEL
Date Mon, 02 Dec 2013 22:27:43 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Alec,

On 12/2/13, 3:48 PM, Tomcat Random wrote:
> Thanks Chris, Are you using log4j 1.x or 2.beta?

I've been using 1.x for quite a long time. I haven't looked much into
the new version. I'd be surprised if it's a mind-blowing upgrade. :)

- -chris

> On Fri, Nov 29, 2013 at 6:06 PM, Christopher Schultz < 
> chris@christopherschultz.net> wrote:
> 
> Alec,
> 
> On 11/27/13, 5:00 PM, Tomcat Random wrote:
>>>> Thanks Dave, I'll take a look at it.
>>>> 
>>>> Chris, thanks as well. Out of curiosity, do either of you
>>>> know if/how you'd consolidate logging for things like say
>>>> clustering. I have clustering configured for two physical
>>>> servers each running an instance of tomcat. I have logging
>>>> configured as per the clustering docs, and it works, but I'm
>>>> not clear on how it would be reported by log4j, instead of
>>>> JULI.
> 
> For my money, I'd use log4j's syslog appender and use syslog to 
> aggregate everything on a single server. I'd have no idea where to 
> begin to use JULI for that, but I'm sure that's more because I have
> a greater familiarity with log4j.
> 
>>>> "I find java.logging to be... frankly frustrating to
>>>> configure." Totally agree, I feel like the Tomcat
>>>> logging.properties file is weirdly clunky.
> 
> Yes. That's because out of the box it uses java.util.logging, or 
> actually an adaptation of it. That choice was probably made to
> limit the number of 3rd-party (though log4j is ASF) libraries
> required to run Tomcat. Since java.util.logging comes with the
> JRE... may we wsll use it.
> 
> -chris
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSnQleAAoJEBzwKT+lPKRYm5sP/1kmwvayu1pRI/F247WYv6B3
bsLJo2jEFiWINxpvkhIAgqPHAwBIwGKoepWdnZFtQVzXxbxy5yCzP0P9eFOCBbUk
KDSrEdHK+eu+Py6BoSntvT7wtpV/7pzzGDDR1v0CzyHjuy0OV60NUv5F2zDsukp/
ls/9pi0WO5ncns4BShj/eu51IDTyZUQP6k8wamTqRx4HaFWdMGdYbrNTq3jtuP+p
gpwTjO45bE1PGE8BthRzOE4v11cNpJhS6spNaK/Qy61EaTSXfGAtg0ZSQbcx1HK9
r4lJZ0CQVL2oXWVat0cN9Ipy5q82Zw8PTfXUF66Vrx/1qdsSXdS4ceFwe2DaVLUn
xIOrb0zd8PKXyGIRvlmLuVNX/vioYFF43T5SNlj51rIFhQ7oeu/F+tvqRqztdC8g
snkLWa4vHGNwmbhy6FepP6CXmXCiWgtU0UzP1S6yFsWlVgR+dJJ/4rVtOhwh3/T0
I7KdPYWwmoJYvULA7GDbtsR9zrN42wdSSFXdhrg5STImA5+O8lky6xO5UEWvvSuw
NWLzhb+cGDkrdvKtyPzGtH4EJayItUlYXMDjG6xwla6LHxi27FD3gV+uJxVlgoVU
yxRMcdG1f2Z087Gl/XNCkhy7TmO4RDIUqL/9wwjOSfD1SvVMa8B9SyY6+qz7f8ag
bOpbUovSflMUfKCfz8KR
=DCTU
-----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