"Christopher Schultz" <ch...@christopherschultz.net> wrote in message news:4a8223c7.1030...@christopherschultz.net... >> My webapp uses log4j to log data to stdout. When using Juli (in the >> default >> configuration), everything that is displayed in stdout is logged to >> catalina.out. However, when I switch to log4j, this doesn't seem to be >> the >> case; only data that is logged by tomcat is logged to my catalina.out; >> anything my webapp is logging to stdout isn't captured in the file. > > How many log4j.jar files od you have, and where are they? The behavior > you describe sounds like your webapp has its own copy of log4j.jar AND > log4j.properties which are being used for the webapp instead of the > globally-loaded log4j classes and log4j.properties file.
Yes - that's exactly the case. The webapp has its own self-contained log4j.jar and log4j.xml. I assumed that might be part of the cause, however I don't understand why when using Juli anything that webapp's log4j logs to Stdout gets logged to a file, however, when using log4j with tomcat this behaviour isn't replicated. Is there a reason for that? Thanks, Eric --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org