Edit General Logging Properties

Use this page to configure the logging options for the instance.

You can also redirect stdout and stderr to the server's event log and direct the log output to the operating system's system log.

The following table describes the fields and buttons on the page. The left column lists the fields and buttons; the right column describes the functionality.

Field or Button
Description

Log File

Specifies the path and filename to the Administration Server log used to collect information about the server during runtime. The default file name is server.log.

Note that if you change this directory from the default, the directory must exist prior to specifying the path and filename. For example, if the path is ..../xx/server_new.log, the directory "xx" must exist in order for the logging service to begin for the new server log.

Default Log Level

Specifies the degree of logging information that is collected. Log Levels used in Sun JavaTM Application Server are the same as those used in the JDK 1.4 specification. In addition, Sun Java System Application Server uses additional log levels that provide natural mapping to Solaris SYSLOG log-levels in an attempt to tightly integrate with the Solaris 9 operating system.

You can specify a default log level here for the entire server. However, you can also override the default log level for a particular subsystem at the subsystem level.

Log stdout content to event log

Use this field to direct stdout content to the server's event log.

This field works with the Write to system log field on this screen using the following logic:

  • When checked and Write to system log is disabled, event log information for the defined log level is redirected to the server log file specified.

  • When unchecked and Write to system log is disabled, event log information is directed to a terminal window.

  • When checked and Write to system log is enabled, event logs are directed to the system log (syslog on UNIX, event log on Windows).

Log stderr content to event log

Use this field to direct stderr content to the server's event log.

This field works with other fields on this screen using the following logic:

  • When checked and Write to system log is disabled and Echo to stderr is disabled event log errors for the defined log level are redirected to the server log file specified.

  • When checked and Write to system log is enabled and Echo to stderr is disabled event log errors for the defined log level are directed to the system log file.

  • When unchecked and Write to system log is disabled and Echo to stderr is disabled event log errors for the defined log level are redirected to a terminal window.

  • When checked and Write to system log is disabled and Echo to stderr is enabled event log errors for the defined log level are directed to both the server log file specified and a terminal window.

  • When checked and Write to system log is enabled and Echo to stderr is enabled event log errors for the defined log level are directed to both the system log file and a terminal window.

  • When unchecked and Write to system log is disabled and Echo to stderr is enabled event log errors for the defined log level are directed to a terminal window.

Echo to stderr

When checked, log messages are sent to stderr in addition to the server log file specified.

Create Console

(Windows only). When checked, a console window is created for stderr output.

Log virtual server id

When checked, the virtual server id is logged with the log message. This is a useful feature when multiple virtual servers are used to log messages to the same log file.

Write to system log

When checked, the UNIX syslog logging service is used, or the Windows system logging service is used to produce and manage logs; logging is not performed to the Application server's server.log file.

Save

Saves your changes.

Reset

Resets the values on the page to the default values.

See also

Log Levels


Legal Notices
Copyright © 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.