Switching native Tomcat logging system
Hello, For some obscure reasons, Tomcat insists on having its own native implementation of a logging system, namely juli. This is beyond my understanding. Log4j has existed for years, is much better than even the native Sun's JDK logging API of today, and Tomcat hasn't switched to it, even to the expense of requiring, or even bundling (licenses are not incompatible after all) it with its distributions. WHY? And today, there is slf4j, which is even better. Especially combined with logback. I don't even want to HEAR about the JDK's logging API, it is miserable. When will Tomcat's logging account at last for 21st century logging systems? I am surprised log4j didn't even become the default for 6.0.x, and 7.0.x still doesn't make it the default... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Switching native Tomcat logging system
On 31/05/2011 19:49, Francis GALIEGUE wrote: Hello, For some obscure reasons, Tomcat insists on having its own native implementation of a logging system, namely juli. This is beyond my understanding. Log4j has existed for years, is much better than even the native Sun's JDK logging API of today, and Tomcat hasn't switched to it, even to the expense of requiring, or even bundling (licenses are not incompatible after all) it with its distributions. WHY? And today, there is slf4j, which is even better. Especially combined with logback. I don't even want to HEAR about the JDK's logging API, it is miserable. When will Tomcat's logging account at last for 21st century logging systems? I am surprised log4j didn't even become the default for 6.0.x, and 7.0.x still doesn't make it the default... Yawn. Have you read the docs? http://tomcat.apache.org/tomcat-6.0-doc/logging.html p signature.asc Description: OpenPGP digital signature
Re: Switching native Tomcat logging system
- Original Message - From: Francis GALIEGUE f...@one2team.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Tuesday, May 31, 2011 11:49 AM Subject: Switching native Tomcat logging system Hello, For some obscure reasons, Tomcat insists on having its own native implementation of a logging system, namely juli. This is beyond my understanding. Log4j has existed for years, is much better than even the native Sun's JDK logging API of today, and Tomcat hasn't switched to it, even to the expense of requiring, or even bundling (licenses are not incompatible after all) it with its distributions. WHY? And today, there is slf4j, which is even better. Especially combined with logback. I don't even want to HEAR about the JDK's logging API, it is miserable. When will Tomcat's logging account at last for 21st century logging systems? I am surprised log4j didn't even become the default for 6.0.x, and 7.0.x still doesn't make it the default... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris Hmm: http://tomcat.apache.org/tomcat-6.0-doc/logging.html http://tomcat.apache.org/tomcat-7.0-doc/logging.html For SLF4J (via a quick Google search): http://code.google.com/p/tomcat-slf4j/ http://jbrisbin.wordpress.com/2010/04/20/change-logging-package-to-slf4jlog4j-in-tcservertomcat/ I've not used SLF4J, so I have no comments on the above. And here's a logback-slf4j-tomcat implementation: https://github.com/grgrzybek/tomcat-slf4j-logback I've not done the above, so I have no comments. I've not tried anything other than the standard Juli logging for Tomcat. I might investigate the log4j mechanism (seems least invasive) and then use the syslog appender for centralized logging. . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org