Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add question list to start. Remove obsolete entry that referred to 5.0.

...

As you read these questions, please keep in mind that Tomcat's internal logging is separate from your own webapp's logging. You would typically be concerned only with your own webapp's logging. You would modify Tomcat's internal logging settings if you are debugging a possible issue or running into other problems. It is anticipated that Tomcat's out-of-the-box logging configuration will be fine for the vast majority of users and environments.

Questions

  1. Wiki Markup
    \[#Q1 Does Tomcat have built-in logging capabilities, and if so how do I use them?\]
  2. Wiki Markup
    \[#Q2 How do I configure commons-logging for use with Tomcat?\]
  3. Wiki Markup
    \[#Q3 How should I log in my own webapps?\]
  4. Wiki Markup
    \[#Q4 Where does System.out go? How do I rotate catalina.out?\]
  5. Wiki Markup
    \[#Q5 Where are the logs when running Tomcat as a Windows service?\]
    \\

Answers

Does Tomcat have built-in logging capabilities, and if so how do I use them?

...

  • Wiki Markup
    \[http://mail-archives.apache.org/eyebrowse/BrowseList?listName=tomcat-user@jakarta.apache.org&by=thread&from=863525Where are the Tomcat logs when running as a Windows service?\]
    \\

...

  • ?

...

Yes, there are. You can Google for more, but some such references are:

  • Wiki Markup
    \[http://minaret.biz/tips/tomcatLogging.html Tomcat 5.0.27, Velocity 1.4, Log4j\]