servlets

can any one tell me how to use log4j with servlets?
[58 byte] By [java@srinua] at [2007-11-26 15:49:16]
# 1
can anyone tell me how to use google?
georgemca at 2007-7-8 22:08:53 > top of Java-index,Java Essentials,New To Java...
# 2
This is the same questions as: http://forum.java.sun.com/thread.jspa?threadID=5127350&tstart=0
smarsha at 2007-7-8 22:08:53 > top of Java-index,Java Essentials,New To Java...
# 3
> can any one tell me how to use log4j with servlets?Same way you use it with normal classes.Ted.
ted_trippina at 2007-7-8 22:08:53 > top of Java-index,Java Essentials,New To Java...
# 4
Not by double-posting: http://forum.java.sun.com/thread.jspa?threadID=5127350&messageID=9453502#9453502
BIJ001a at 2007-7-8 22:08:53 > top of Java-index,Java Essentials,New To Java...
# 5

> > can any one tell me how to use log4j with

> servlets?

>

> Same way you use it with normal classes.

>

> Ted.

except you can get problems with classloaders if your webapp wants to use one version (and config) of log4j while your appserver is using another.

Best defer logging to the appserver loggers where available.

jwentinga at 2007-7-8 22:08:53 > top of Java-index,Java Essentials,New To Java...