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-3
Log Manager
Log Manager
The Log Manager tracks the global logging information.
The Log Manager manages the following:
The hierarchical namespace of logger objects. All named loggers are stored in this
namespace.
The logging control properties, which are simple key-value pairs that can be used
by handlers and other logging objects.
The following is the sequence of events that occur when an application attempts to
write a log message:
1. The application code sends the log message and its log level to a logger.
2. If the log level of the log message is lower than the log level of the logger, the log
message is discarded. If the log level of the log message is greater than or equal
to the log level of the logger, the logger forwards the log message to its associated
handler.
3. If the log level of the log message is lower than the log level of the handler, the log
message is discarded. If the log level of the log message is greater than or equal
to the log level of the handler, the log message is formatted by a Formatter object
associated with the handler.
4. The handler publishes the formatted log message.
Figure 5-1 illustrates the logging work flow.