File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging in Tomcat

 
Poonam Kadu
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

-----
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic