Sun GlassFish Enterprise Server 2.1 Administration Guide

Configuring Logging

This section contains the following topics:

Configuring General Logging Settings

To configure the general logging settings using the Admin Console:

On the General page, enter appropriate values to customize logging to your requirements. Stop and restart the Enterprise Server.

For details on setting the various configuration parameters, click Help in the Admin Console.

To configure these log settings in asadmin, use the get and set commands.

You can use the com.sun.enterprise.server.logging.max_history_files system property to limit the number of rotated log files for both access logging and the server log. The property specifies the maximum number of access log files to keep, starting with the most recent ones.

In the Admin Console, access the config/server that this system property needs to be set for. On the command line, use the create-jvm-option command.

Configuring Log Levels

To configure log levels using the Admin Console:

Set the log level for the modules listed on this page. Use the Additional Properties area to configure log levels for any application loggers. For a list of the module loggers, see The Logger Namespace Hierarchy.

For details on setting the various configuration parameters, click Help in the Admin Console.

To configure these log settings in asadmin, use the get and set commands.

Viewing Server Logs

To view the log files:

Use the options provided in the Search Criteria area to display log results based on your preferences.