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 Guide—596210-006
5-14
Configuring the NSJSP Formatter Class
where,
sample.bank - is the logger.
level - is the log level property.
INFO - is the log level value.
<handler1, handler2, handler 3> - are the associated handlers.
The following is an example of a child logger configuration whose parent logger is
sample.bank:
sample.bank.servlet.level = INFO
sample.bank.servlet.useParentHandlers=true
sample.bank.servlet.handlers =
1bankapp.com.tandem.servlet.logging.NSJSPLogHandler
where,
sample.bank.servlet - is the logger.
useParentHandlers - if the value of this property is true, log messages will be sent
to the parent logger, sample.bank.
level - is the log level property.
INFO - is the log level value.
1bankapp.com.tandem.servlet.logging.NSJSPLogHandler - is the
associated handler.
Configuring the NSJSP Formatter Class
The NSJSP Formatter class uses the following default message format to write logs:
{DATE,date,EEE, MMM dd, HH:mm:ss}; {PROCESSNAME};
{LEVEL};{SOURCE}; {MESSAGE}
where, {DATE,date,EEE, MMM dd, HH:mm:ss}, {PROCESSNAME}, {LEVEL},
{SOURCE}, and {MESSAGE} are literals.
Table 5-4
lists the predefined literals that enable you to configure the log message
format.
Note. The associated handler can include its own log level. However, the log level assigned to
the logger will apply. In the given example, the log level, INFO overrides the log level assigned
to 1bankapp.com.tandem.servlet.logging.NSJSPLogHandler.










