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-9
Logging Configuration
Using the datePattern attribute in the logging.properties file, if you configure
the log file to roll over on a daily basis, nsjsp.log.2008.08.30 rolls over to the
specified directory when the date changes to August 31st 2008. Subsequently, a new
log file is created, called nsjsp.log.2008.08.31, and the logs are written in this
file.
Similarly, if you configure the roll over to occur on an hourly basis, the log file name
includes the date and time at which the log file is created along with the specified
name. At the end of an hour, the log file rolls over to the specified directory and a new
log file is created with the new time. For example, if the log file is created at 02.00.30
hours on August 30
th
, 2008, the name of the log file will be
nsjsp.log.2008.08.30.02.00.30.
The archiveDirectory Attribute
The archiveDirectory attribute value specifies the location where the log files will
be moved upon roll over. The value of the archiveDirectory attribute can be either
an absolute path or a relative path of the log file. If the archiveDirectory attribute
value is a relative path, the log files are placed in a directory relative to the
${catalina.base} directory. Also, you can configure an absolute path.
Consequently, log files are placed in the specified absolute path.
If the archiveDirectory attribute value points to an invalid directory location or if
the archiveDirectory attribute is not configured, the log files roll over in the current
location that is denoted by the destination attribute value.
For information on configuring for log rollover, see Configuring for Log Rollover on
page 5-15.
Logging Configuration
This section describes how to configure the following:
Configuring Handlers
Configuring Loggers
Configuring the NSJSP Formatter Class
Configuring for Log Rollover
Configuring the logging.properties File
Configuring Logging for the NSJSP Container and Web Applications
Note. If the archiveDirectory attribute value is set, the log file moves to the set location.
Otherwise, the log file remains in the current directory, which is the value of the destination
attribute.










