NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
6-1
6 Logging in NSJSP 6.0
This chapter includes these sections:
Prerequisites
Overview of Commons Logging and java.util.logging
Logging Implementation in NSJSP 6.0
Prerequisites
To understand the logging functionality in NSJSP 6.0, you must have a good
understanding of:
Commons Logging
java.util.logging package
NSJSP
Overview of Commons Logging and
java.util.logging
This section provides an overview of the Commons Logging and the
java.util.logging.
Commons Logging
Commons Logging is an Apache Commons project that provides a layer of abstraction
over popular logging implementations like Log4J, and java.util.logging. Using
Commons Logging, you can program an interface or a standard rather than
programming the implementation. For more information on Log4J, refer
http://logging.apache.org/log4j/
.
NSJSP 6.0 uses Commons Logging across its internal code.
The main components of Commons Logging are:
Log interface: acts as a bridge between Commons Logging and various logging
implementations. The LogFactory class provides the implementation for the Log
interface to Commons Logging.
LogFactory: detects the underlying logging implementation and provides the
appropriate implementation for the Log interface. The implementation of the Log
interface is responsible for establishing a communication with the underlying
implementation.
For more information on Commons Logging, refer http://commons.apache.org/logging/
.










