NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide

Logging in NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide596210-006
5-15
Configuring for Log Rollover
The following is a sample log message in the default message format:
Mon, Oct 22,
15:35:17;$Z4Z2;SEVERE;StandardContextSF#storeWithBackup; Cannot
move original context output file.
where,
Mon, Oct 22, 15:35:17 - is the date.
$Z4Z2 - is the process name.
SEVERE - is the message severity.
StandardContextSF#storeWithBackup - is where the message originates.
Cannot move original context output file - is the log message.
When NSJSP Formatter is used with any other handler, it uses the default format. By
default, NSJSPLogHandler uses the
com.tandem.servlet.logging.NSJSPFormatter class.
The following syntax describes how you can configure NSJSP Formatter with other
handlers, such as, ConsoleHandler:
java.util.logging.ConsoleHandler.formatter
=com.tandem.servlet.logging.NSJSPFormatter
Upon successful configuration, the ConsoleHandler will use the NSJSPFormatter
to format messages.
Configuring for Log Rollover
This section describes the procedures to configure for log rollover.
Configuring for Log Rollover Based on File Size
Configuring for Log Rollover Based on Timestamp
Table 5-4. Literals in the Format Attribute
Literal Data Type Description
MESSAGE String The text message to be published.
LEVEL String The message severity as indicated by the application.
PROCESSNAME String The name of the JVM process.
PIN Short The PIN of the JVM process.
CPU Short The CPU in which the JVM process is running.
SOURCE String The class and method from where the message
originates.
DATE String The date and time at which the message is created.