You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gupta, Sahil" <sa...@webmd.net> on 2004/07/21 16:47:09 UTC

tomcat 5 logging problem

I cant seem to get logging working on my apache+tomcat5 set up. I have the
log4j.properties file in the tomcat_install/conf directory and the
environment variable 

CATALINA_OPTS set to
-Dlog4j.configuration=file:/c:/webmd/Tomcat4.1/conf/log4j.properties EXPORT
CATALINA_OPTS

I am attaching the log4j.properties file.

In the code, i use commons-logging jar and 

private static final Log log;
    static 
    {
        log = LogFactory.getLog("org.abc.search");
    }

to instantiate a Log object.

What could i be doing wrong?

S