Logger Settings

Use the Logger Settings page to configure logging for the selected GlassFish Server instance or cluster.

The Logger Settings page contains the following options.

Configuration Name

The name of the configuration to which the settings on this page apply. This field is read only.

Write to System Log

When enabled, logging output is sent to the syslog facility in addition to the server log. This feature is available on Solaris and Linux systems only. This option is disabled by default.

Log to Console

When enabled, logging output is sent to the system console.

Rotation on Date Change

When enabled, GlassFish Server rotates log files every day at midnight.

Multi Line Mode

When enabled, log messages are formatted in a way that makes them easier to read. The log message body is indented and starts on a new line.

Console Logging Format

The logging format for logging to the console. Available choices are ULF (UniformLogFormatter) and ODL (Oracle Diagnostics Logging). The default is ODL.

LogFile Logging Format

The logging format for logging to the server log file. Available choices are ULF and ODL. The default is ODL.

File Rotation Limit

The size in bytes that the server log file must reach before it is rotated. When the server log reaches the specified size, the GlassFish Server creates a new, empty file named server.log and renames the old file server.log_date, where date is the date and time when the file was rotated. The default value is 2 megabytes. The minimum value for the limit is 500 kilobytes; if you specify a lower value, the file rotates when it reaches 500 KB. To turn off log file rotation, set the value to 0.

File Rotation Time Limit

The number of minutes after which the server log must be rotated. The default value is 0, which means that the file is rotated when it reaches the size specified in the File Rotation Limit field. If you specify one or more minutes, the time limit takes precedence over the size limit specified by the File Rotation Limit field.

Flush Frequency

The maximum number of messages to be written from the queue to the server log at a time. The default value is 1.

Maximum History Files

The maximum number of log files that GlassFish Server keeps before deleting the oldest file. If you set this value to zero (0), GlassFish Server does not delete any old log files.

Log File

An alternative name or location for the server log file. The default location is domain-dir/logs/server.log.

Log Handler

The absolute class name of a custom log handler. A custom log handler enables you to send logs to a destination other than server.log or syslog. The custom handler must extend the class java.util.logging.Handler (a JSR 047 compliant API). Put the handler class in the GlassFish Server classpath so that the handler is installed during server startup.

Related Tasks
Related asadmin Commands
Copyright © 2005, 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices