JSF/Struts logs ok Servlet/JSP does not?

2007-11-29 Thread Warren
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

RE: [SPAM (Bayesain Analysis)] - Newbie help: Capturing Stdout and Stderr into log4j - Bayesian Filter detected spam

2007-11-29 Thread Bender Heri
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