Your way is working fine right now, so why changing it? Use Tomcat log interface will make your code depending on Tomcat appserver. What if you want run your app on other servers in the future?
I just happen to move all logging to use common-log so that it will run on multiple appservers. Just my 2Cents advice -Dan ----- Original Message ----- From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 11:45 AM Subject: Tomcat + commons-logging + log4j > > 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 > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
