Until a few days ago, I've been running Tomcat embedded in JBoss.  When
I moved Tomcat to a separate machine a few days ago, I lost all Log4j
messages.
 
How can I get them back?  I've added the following to my server.xml
file:
 
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost_log." suffix=".txt"
                timestamp="true"/>

        <Logger className="org.apache.catalina.logger.SystemOutLogger"
verbosity="4" />

I've got a ConsoleAppender going in my log4j.xml file that worked as
expected under JBoss.  My expectation is that the log4j ConsoleAppender
would send various messages to stdout, and the SystemOutLogger would put
them on the console.  
 
However, it doesn't work: I don't see any logger.info messages at all,
on the screen or in any of the log files.
 
I expect that I'm not seeing the log4j.xml file.  But I don't know where
to put it so it can be seen: I've tried WEB-INF/lib, WEB-INF/classes,
TOMCAT_HOME/common/classes, and TOMCAT_HOME/common/lib.
 
Any help would be very appreciated.  I really don't want to go through
80,000 lines of code to replace the logging statements!
 
Rod.

Reply via email to