You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tomcat Random <to...@gmail.com> on 2013/12/02 21:48:14 UTC
Re: Logging Best Practices on RHEL
Thanks Chris, Are you using log4j 1.x or 2.beta?
On Fri, Nov 29, 2013 at 6:06 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> 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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.15 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJSmR4GAAoJEBzwKT+lPKRY9JgQAJrQjbnlxLaOexDcDpxNUSZs
> GSgnCKmbOjUSgwAiPE5LbqjHGu+HkdC4rKfM+sGy4F466wxKVcZAmCCETIrKwHLd
> BaRsNB9pZ8gV/hQH3tf52fI8UEFc48K/obm97t3R+Apjmr58UC0uZc0OFM7ukXk0
> E0M/bLQRJl39uZvwvFUJcoYi5jn5XKsqdYHoI9AbVn5DvmQkvPK2BzFqSd37Sm3T
> RGAFiZuUlTPPWA1nTKT+XHyb5YI8fmxo6Jt1dNi5qSaU9xB8ZgKbE+TabZ4fUVaF
> 7eRo+mS6CDPe5BHsne9bShFaIhljyQdmu/QNNTfstUDUiFgAF3zAzAbEMmeYYtFs
> +pHdMWeExt+MTVlppJtTEEiPYtJDbR+ZE/r6Zligm8+Rx43Mhx59iAEO8+UYguyE
> +7IPtLFuSM+hzhjjUvwgSMdgNn2Fm3mg+NOVHL4rQC2MDewv256Hd/wZb7D/5Shp
> KEx9epFB78jW+Qq+dQmiW0o8yD0duWU9uENnrweTkFq/alYWtQZy3DbJBYQ1x+wX
> c+C6xlX69mu5Xpg0IIoLCcRHny+0B0cyWXgGMQfbAq0gfgF7oWGpSeZmopDD3OMU
> JwSU1BmEADH8RGs0zR0TXpw+SmjXYpADp6a9AK1wY3pRt4KS6BMX3ttJpxKhsO9d
> bgJvjWLNingPvlaaIlCS
> =Y2aT
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Logging Best Practices on RHEL
Posted by Tomcat Random <to...@gmail.com>.
Chris, thanks. That's good to know since I just implemented 1.2.17.
On Mon, Dec 2, 2013 at 5:27 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:
> -----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
>
>
Re: Logging Best Practices on RHEL
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----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