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-5
NSJSP Enhancements to the Logging Architecture
To overcome these inabilities, Tomcat replaces the java.util.logging
implementation with a container-friendly implementation, called JULI.
JULI allows a logging configuration file for each class loader. Because each web
application hosted on the servlet container has its own class loader, allowing a
configuration file per class loader leads to each web application having its own
logging configuration file. JULI offers this feature by providing the
ClassLoaderLogManager, which conforms to the java.util.logging Log
Manager specifications. The ClassLoaderLogManager extends the Log
Manager of java.util.logging.
Along with the ClassLoaderLogManager, JULI also provides certain
enhancements to the configuration parameters in the logging.properties file.
Configuring multiple handlers with a single handler class: Tomcat enables you to
configure multiple handlers using the same handler implementation class. For the
same handler implementation class, the settings of one handler can be different
from that of another handler.
For more information on configuring multiple handlers and loggers, see Configuring
Handlers on page 5-10.
NSJSP Enhancements to the Logging
Architecture
This section describes the NSJSP enhancements to the logging architecture.
NSJSP provides the following NonStop-specific classes along with JULI:
NSJSP Formatter
NSJSP Log Handler
NSJSP Formatter
The NSJSP Formatter class is a NonStop-specific class that is used to define the
format in which messages must be published. The NSJSP Formatter class
(com.tandem.servlet.logging.NSJSPFormatter) is an extension of the
java.util.logging.Formatter class. It is commonly denoted as
NSJSPFormatter.
For information on configuring the NSJSP Formatter, see Configuring the NSJSP
Formatter Class on page 5-14.
NSJSP Log Handler
The NSJSP Log Handler class offers configuration properties for the log messages and
enables you to configure the message format. The NSJSP Log Handler class
(com.tandem.servlet.logging.NSJSPLogHandler) is commonly denoted as