wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Logging in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Logging in Tomcat" Watch "Logging in Tomcat" New topic
Author

Logging in Tomcat

Poonam Kadu
Ranch Hand

Joined: Jul 21, 2006
Posts: 49
I've installed Tomcat 6.My problem is that I'm unable to view SOP's in catalina."date" .Secondly,how do i make all SOP's go to a specific file in the log directory?

cheers,
Poonam.
Zemian Deng
Greenhorn

Joined: Jun 12, 2007
Posts: 21
Hello Poonam,

Default tomcat will do logging already. If you are experimenting, try running:

$ tomcat/bin/catalina.sh run

And that will run it on foreground with message on screen.

Also check your tomcat/logs folder for more specific logging that saved as file.

You may change tomcat logging by editing conf/logging.properties as default. Or you may use other library such as Log4j to controll it's output as well. Their official site has these documented.

Hope these help.
-Z
Poonam Kadu
Ranch Hand

Joined: Jul 21, 2006
Posts: 49
Hi Zemian,
I had already checked all files in the logs folder but none of them contained the SOP's . .(I had installed Tomcat 6 using the zip file available on Apache Tomcat site).What are the changes to be made to conf/logging.properties so that the SOP statements go to a paticular file in logs?

Thanks,
Poonam.
Zemian Deng
Greenhorn

Joined: Jun 12, 2007
Posts: 21
What is SOP?

Did the catalina.sh run command works for you? Do you even see output?

Have you read the logging section from Tomcat's documentation site? http://tomcat.apache.org/tomcat-6.0-doc/logging.html

If you are experimenting, then read more on JDK's java.util.logging. If you plan to use logging extensively on your app, I recommend using either log4j or logback library.

-Z

-----
 
 
subject: Logging in Tomcat