I have a JSF app, a struts app and a Servlet/JSP app running in the same
Tomcat 5.5 server. The JSF and Servlet app initialize and run log4j with no
problems. The Servlet/JSP app does not initialize log4j. I am running Tomcat
with -Dlog4j.debug set.
The init method of the initial servlet loaded on
Log4j is not designed for hooking any system event. It's mainly a very flexible
output channel.
Capturing the stdout: Assign your own OutputStream to System.out and you get
all messages to stdout. These you can write then to any logger you wish.
Exceptions are catched in the normal java way thro