[logback-user] How to control WebApp logging by Tomcat control files

Boogie Shafer boogie at ebrary.com
Mon Apr 21 16:45:52 CEST 2014


you may want to checkout these pages

https://github.com/grgrzybek/tomcat-slf4j-logback (an example implementation of using logback with tomcat for all logging)
http://www.slf4j.org/legacy.html (some overview of how to use slf4j to support legacy logging interfaces)

in short logback and slf4j can replace anything you might be using log4j for

if you are using logback for access logging under tomcat you may also want to add the Remote IP Valve to your tomcat configuration if you are running behind a load balancer that provides X-Forwarded-For headers

From: Logback-user <logback-user-bounces at qos.ch> on behalf of Ulrich <Forums at gombers.de>
Sent: Monday, April 21, 2014 00:04
To: logback-user at qos.ch
Subject: Re: [logback-user] How to control WebApp logging by Tomcat control     files

Until now I learned that LOGBACK can replace java.util.logging only for
access logging until. It seems, only log4j can provide a full
java.util.logging replacement.
As LOGBACK can't replace JUL, I can't use LOGBACK to control
WebApplicationLogging centrally, though I'm no longer sure that this might
be a good idea, anyway.
I learned to control the access log now, so I'm done with my question.

View this message in context: http://logback.10977.n7.nabble.com/How-to-control-WebApp-logging-by-Tomcat-control-files-tp13547p13554.html
Sent from the Users mailing list archive at Nabble.com.
Logback-user mailing list
Logback-user at qos.ch

More information about the Logback-user mailing list