Sun Java System Web Server 6.1 SP12 Programmer's Guide to Web Applications

Logging

You can use the Sun Java System Web Server's log files to help debug your applications. For general information about logging, see the Sun Java System Web Server 6.1 SP12 Administrator’s Guide. For information about configuring logging in the server.xml file, see the Sun Java System Web Server 6.1 SP12 Administrator’s Configuration File Reference.

You can change logging settings in one of these ways:

Using the Administration Interface

ProcedureTo change logging settings

  1. Access the Server Manager and click the Logs tab.

  2. Set log preferences as desired.

  3. Apply your changes.

Editing the server.xml File

To change logging settings, set the attributes of the LOG element in the server.xml file. For details about server.xml file, see the Sun Java System Web Server 6.1 SP12 Administrator’s Configuration File Reference.