How to make sense of the sometimes huge amount of information logged by Cocoon and Tomcat?

Where are the logs?

For a standard installation under tomcat there are two sets of logs (paths relative to TOMCAT_HOME):

Depending on the problem that you're trying to locate, you might have to look at both sets of files.

How to analyze the logs

The Cocoon and tomcat logs are plain text files, and as such best analyzed using text tools like those provided at the unix or linux command-line.

Unless you use something like LogFactorFiveHowto or ChainSaw, the logs must be analyzed with text-based tools.

Using the grep, cut, tail -f (and maybe awk) command-line utilities will help you a lot in finding what you're looking for. These tools are also available for Windows systems as part of the cygwin toolset.

Strong text editors like UltraEdit or TextPad might also help, but they're usually not as convenient as the console-based tools when it comes to real-time analysis of log files.

How to configure logging

Tips and tricks

ExploringTheLogs (last edited 2009-09-20 23:42:58 by localhost)