NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
Logging in NSJSP 6.0
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
6-8
LogFactory in NSJSP 6.0
Log Rollover Feature in NSJSP 6.0
The log rollover feature provides a convenient way to manage the NSJSP log files. The
benefits of the log rollover feature are:
Manages and archives the log files depending on the file size or timestamp.
Saves the rollover log files in a separate location, which is useful in archiving the
log files.
The following types of log rollover feature are available in NSJSP 6.0:
Size-based rollover
You can configure the size-based rollover feature to control the size of an active
log file. For information on configuring size-based rollover, see Size-based Rollover
of Log files on page 6-8.
Timestamp-based rollover
You can configure the timestamp-based rollover feature for log files that have
different time windows. For example, you can configure the rollover for log files
every day or every hour. In such a scenario, the time window is one day or one
hour. For information on configuring timestamp-based rollover, see Timestamp-
based Rollover of Log Files on page 6-9.
To configure the rollover feature, the following log handler attributes are used:
maxFileSize
datePattern
archiveDirectory
In NSJSP 6.0, the log rollover feature is disabled by default. To enable it, the log
handler attributes must be uncommented in the logging.properties file and the
destination attribute must be pointed to a physical file.
For example, if the value of the destination attribute is set to nsjsp.log, the log
messages are saved in the nsjsp.log file and the file is rolled over based on the
value of the maxFileSize or datePattern attribute. The value of the destination
attribute must not be equal to STDOUT or STDERR or EMS because the value does not
always point to physical files.
Size-based Rollover of Log files
The maxFileSize attribute governs the size-based rollover of log files. To enable the
size-based rollover, the value of the maxFileSize attribute must be set to a value
greater than zero. This attribute value specifies the size of a log file in megabyte (MB).
The file size must reach the specified value to roll over the log file. NSJSP 6.0
considers 10 MB to be a reasonable size to archive the log files. Therefore, if the value
Note. The log rollover feature is introduced in the T1222^AAL SPR.










