You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Ceki Gülcü <li...@qos.ch> on 2006/03/29 15:57:05 UTC
RE: How to get log4j to work with commons-logging in web
service app?
Hello Dave,
Are you using by any chance using Jetty 6?
At 03:17 PM 3/29/2006, Dave Hoffer wrote:
>Jake,
>
>Yes it does. However we may be doing things a bit different/wrong. Our
>web app is AXIS. We don't have a non-packaged class and we don't have a
>main per see. We use AXIS to expose the public methods of one class
>packaged in a jar with a namespace of com.company.product. This jar and
>all its dependencies are located in jetty/webapps/axis/WEB_INF/lib.
>
>I tried adding the log4j.properties file to this jar and to
>WEB_INF/classes with no luck.
>
>Now, if we uncomment the Configure Jetty Logging section in Jetty's
>etc/Jetty.xml file, we get our logging output included with Jetty's log
>output. However, we don't yet know how to configure this output, i.e.
>set log level, etc.
>
>I suspect that since we are using commons-logging and because it can't
>find our log4j.properties file, our logging is getting directed to Jetty
>somehow.
>
>-dh
--
Ceki Gülcü
http://ceki.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org