Wendy,
The container surely will have its own mechanism. I definitely dont want my trace messages sharing with the container itself. Why? I ran into a confuse problem where my app logs it messages with other APPS, and I had a hard time reading it. By using my own, it is surely less confusing. If you use the common-logging without configure any specific implementation (Log4J, JDK1.4 log, etc), it will be default to a simple interface which is your stdout. If you start appserver in a shell, the message are sent to console. However If you appsever are under a NT services or Unix backgroup, stdout message are sent to a log file. Location of file should be documented with your Appserver. Hope this helps -D ----- Original Message ----- From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 1:47 PM Subject: RE: Tomcat + commons-logging + log4j > Jacob wrote: > > Set up your <Context ...> entry to look something like this: > > <Context path="/myapp" docBase="myapp" debug="5"> > > <Logger > > className="org.apache.catalina.logger.FileLogger" > > prefix="localhost_myapp_servlet_log." > > suffix=".txt" > > timestamp="true" /> > > </Context> > > Wow, nothing like it being right there in front of my face. The context tag > for the examples does have a Logger tag-- I must have been searching for > 'Logging' instead. > > Thanks! > > Dan wrote: > > 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 take it logging isn't in the servlet spec? From another message, I got > the impression that the container would want to send some messages itself. > If there is no Logger configured for the webapp, does it just send them to > the console? > > -- > 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]>
