Sun GlassFish Enterprise Server v3 Prelude Developer's Guide

Servlet Output

ServletContext.log messages are sent to the server log.

By default, the System.out and System.err output of servlets are sent to the server log, and during startup, server log messages are echoed to the System.err output. Also by default, there is no Windows-only console for the System.err output.

You can change these defaults using the Administration Console. Select the Enterprise Server component and the Logging tab. Then check or uncheck Write to System Log. If this box is checked, System.out output is sent to the server log. If it is unchecked, System.out output is sent to the system default location only.

For more information, click the Help button in the Administration Console from the Logging page.