Sun GlassFish Enterprise Server 2.1 Administration Guide

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.