Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Set Handler-Specific Properties

You can modify logging behavior by setting properties in the file as follows:

  1. In a text editor, find the property that you want to modify and make your changes.

    The following properties are available:

    File Description

    Contains the name and location of the log file. By default, the name is server.log and the location is the logs directory. These can be changed.

    File Rotation Time Limit

    Rotates the log file based on time in minutes. If defined, time limit takes precedence over size limit. If set to 0 (the default), there is no rotation based on time.

    File Rotation Size Limit

    Rotates the log file based on limit in bytes. If set to 0 (the default), there is no rotation based on file size. 500000 is the minimum.


    Uses UniformLogFormatter to format the records in the log file.

  2. Save the file.

  3. To apply your changes, restart Enterprise Server.

    1. Stop Enterprise Server.

      For instructions, see To Stop a Domain (or Server).

    2. Start Enterprise Server.

      For instructions, see To Start a Domain (or Server).

Example 9–1 Changing a Handler-Specific Logging Property

The following example changes the rotationTimelimitInMinutes from 0 (the default) to 90 minutes:



After: :