Sun Java System Web Server 6.1 SP9 Administrator's Guide

Configuring the LOG Element

The following table describes the attributes for the LOG element you can configure in the server.xml file:

Table 10–2 LOG attributes

Attribute  

Default  

Description  

file

errors

Specifies the file that stores messages from the default virtual server. Messages from other configured virtual servers are also stored here, unless the errorlog attribute is explicitly specified in the VS element.

loglevel

info

Controls the default type of messages logged by other elements to the error log. Allowed values are as follows, from highest to lowest: 

finest, fine, fine, info, warning, failure, config, security, and catastrophe.

logvsid

false

(Optional) If true, virtual server IDs are displayed in the virtual server logs. These are useful if multiple VS elements share the same log file.

Note that in Sun Java System Web Server 6.1 the logvsid element cannot be configured in the magnus.conf file.

logstdout

true

(Optional) If true, redirects stdout output to the errors log. Legal values are on, off, yes, no, 1, 0, true, false.

logstderr

true

(Optional) If true, redirects the stderr output to the errors log. Legal values are on, off, yes, no, 1, 0, true, false.

logtoconsole

true

(Optional, UNIX only) If true, redirects log messages to the console.

createconsole

false

(Optional, Windows only) If true, creates a Windows console for the stderr output. Legal values are on, off, yes, no, 1, 0, true, false.

usesyslog

false

(Optional) If true, uses the UNIX syslog service or Windows Event Logging to produce and manage logs. Legal values are on, off, yes, no, 1, 0, true, false.