The following table describes the attributes for the LOG element you can configure in the server.xml file.
Table 9–4 LOG attribute
Attribute |
Default |
Description |
---|---|---|
file |
errors |
Specifies the file that stores messages from the server. |
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. |
logstdout |
true |
(optional) If true, redirects stdout output to the errors log. Valid values are on, off, yes, no, 1, 0, true, false. |
logstderr |
true |
(optional) If true, redirects stderr output to the errors log. Valid 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 stderr output. Valid 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. Valid values are on, off, yes, no, 1, 0, true, false. |