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-28
Log File Created by JULI
Log File Created by JULI
When the NSJSP server is running and the JULI framework is initialized, all log
messages are written in the log file created by the JULI logging framework.
The log file created by JULI is the default destination of logs. However, you can change
the default destination of logs.
For information on log file configuration, see Configuring the logging.properties File on
page 5-20.
The name of the log file is derived from the Servlet Server Class name. For example, if
the name of the Servlet Server Class is ABC, the name of the log file is
ABC.<date>.log
where,
ABC - is the name of the Servlet Server Class.
<date> - is the date when NSJSP starts. The date is in yyyy-mm-dd format, and is
automatically added.
This log file supports log rollover. By default, date-based rollover is enabled. However,
unlike the out and err files, you can modify the settings of this log file.
Programming Considerations for Logging
To use JULI logging framework, you must be aware of the following classes:
LogFactory
Log
LogFactory
The LogFactory class is used to identify an underlying logging implementation. It
provides an entry point for the applications to obtain the appropriate implementation of
the Log interface. The LogFactory implementation in JULI is similar to the
LogFactory implementation in Commons Logging, except that the LogFactory has
a hard-coded implementation for java.util.logging.
For information on the LogFactory implementation in Commons Logging, see
http://commons.apache.org/logging/
.
The following is an example of the getLog method of the LogFactory class
(org.apache.juli.logging.Log) to obtain the most suitable implementation of
Note. Under certain conditions, log messages are also written to the err file. For
example, when the internal buffers of the NSJSP JNI library are full, log messages are
written in the log file created by the JULI logging framework and in the err file.










