NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
5-1
5 Logging in NSJSP
This chapter addresses the following topics:
Logging Architecture
Apache Tomcat Enhancements to the Logging Architecture
NSJSP Enhancements to the Logging Architecture
Logging Configuration
Log Files Related to NSJSP
Programming Considerations for Logging
Commons Logging
Logging Architecture
The logging architecture of NSJSP is based on the Java Platform, Standard Edition
logging architecture. NSJSP provides a programmatic interface to the logging
framework using Commons Logging.
For information on Commons Logging, see Commons Logging on page 5-30.
Additionally, NSJSP introduces its own enhancements related to logging.
The logging architecture includes the java.util.logging package that you can
configure. The following Java logging architecture components are defined by the Java
logging package, and enable logging related to the NSJSP Servlet Container objects
and the web applications:
Loggers
Handlers
Formatters
Log Manager
Loggers
Loggers are named entities, which receive log messages. The name of a logger is
usually the name of the Java package. The Java package includes classes whose log
messages are handled by this logger. For example, a logger, called java.awt
handles log messages originating from classes that belong to the java.awt package.
The namespace of the loggers is hierarchical. The hierarchy begins with the root
logger, which is denoted by an empty string, “”. The root logger is the parent logger
and the other loggers are child loggers. Each child logger, in turn, can be a parent for
other child loggers. For example, com.foo is the parent logger of com.foo.bar.










