I need help with logging. I have just today convinced commons-logging and log4j to work together, and now I would like to do logging from my webapp.
My first question is whether I really need commons-logging and log4j at all. I see that tomcat is already producing some logs in /path/to/tomcat/logs. However, I can't figure out how to get one of those for my own webapp. I only see logs for admin, examples, and a generic log. I have read 'The Logger Component' in the docs, but it doesn't have any info on configuration. I don't see any references to logging in server.xml or the global web.xml or the web.xml in the examples webapp. If I do use commons-logging+log4j and want to write my own logs to that same tomcat logs directory, what's the best [cross-platform] way to specify the location? I'm currently using: log4j.appender.rolling.File=../../../logs/myWebApp.log which backs up out of WEB-INF/classes and moves down into the logs directory. I'm very new at this, so please tell me if I'm going about it all wrong! -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
