NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
Logging in NSJSP 6.0
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
6-5
NonStop-specific Classes
However, the ArgumentIndex of java.text.MessageFormat is replaced by
predefined literals. The literals that could be used are listed in the table below.
The Handler class configured as:
com.tandem.servlet.logging.NSJSPLogHandler.format =
{DATE,date,EEE, MMM dd, HH:mm:ss}; {PROCESSNAME}; {LEVEL};
{SOURCE}; {MESSAGE}
displays an output:
Mon, Oct 22,
15:35:17;$Z4Z2;SEVERE;StandardContextSF#storeWithBackup;
Cannot move original context output file
In the following example, the aa parameter is added while configuring the Handler
class:
Add com.tandem.servlet.logging.NSJSPLogHandler.format =
{DATE,date,EEE, MMM dd,hh:mm:ss aa}; {PROCESSNAME}; {LEVEL};
{SOURCE}; {MESSAGE}
The output displays the time with PM:
Fri, Jul 03,12:06:53 PM; $Z07C; INFO; StandardEngine#start;
Starting Servlet Engine: NonStop™ Servlets For JavaServer
Pages™ v6.0
NSJSP Formatter Class
NSJSPFormatter can be used as a formatter with any handler by using the format
attribute. If it is used with NSJSPLogHandler, it formats the message as defined in the
NSJSPLogHandler. When NSJSPLogHandler detects that its formatter is an
Literal
Description
MESSAGE
Prints the text message to be published. The data type is
string.
LEVEL Prints the message severity as indicated by the
application. The data type is
string.
PROCESSNAME Prints the name of the JVM process. The data type is
string.
PIN Prints the PIN of the JVM process. The data type is
short.
CPU Prints the CPU in which the JVM process is running. The
data type is
short.
SOURCE Prints the class and method from where the message
originated. The data type is
string.
DATE Prints the date and time in which the message originated.
You can configure the date format in the same manner
as defined in the
java.txt.MessageFormat class.
The data type is
string.










