-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohit,

On 2/15/2009 11:57 AM, Mohit Anchlia wrote:
> Thanks. There doesn't seem to be mention of catalina.out. Only one
> line that it has referes to other catalina.<date> file that tomcat
> creates
> 
> 1catalina.org.apache.juli.FileHandler.prefix = catalina.

That's a different log file (something like catalina.2009-02-16.log).
Tomcat redirects standard output and standard error in catalina.sh to
catalina.out to capture any output that goes to stdout/stderr.

The configuration for this is in logging.properties, here:

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter

The "ConsoleHandler" writes log messages to the "console" (aka stdout).
This is what ends up in catalina.out.

Chuck's suggestion that Tomcat "does not write to stdout" is not
entirely true. Tomcat's code definitely contains portions which write
directly to System.out. Mostly, these are special situations (startup
errors, etc.). On the other hand, Tomcat makes heavy use of logging, and
comes pre-configured to write some of those logs to the console, which
is the same thing as System.out or stdout.

I hope that clears up some of the confusion.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEUEARECAAYFAkmZ3GMACgkQ9CaO5/Lv0PDVcQCVHwdTbuB9zZpphS8M3ZbExSXw
sgCfePsAG5Mw4ZcfdsqjcRLITZoEn7M=
=2ysD
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to