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-6
Log Rollover
NSJSPLogHandler. This class is an extension of the
java.util.logging.Handler class.
In addition, the NSJSP Log Handler class offers a logging feature, called Log Rollover.
For information on configuring the NSJSP Log Handler, see Configuring Handlers on
page 5-10.
Log Rollover
The log rollover feature enables you to archive log files based on predefined criteria.
The log rollover feature is introduced in the T1222^AAL SPR of the NSJSP 6.0
release.
Servlet containers and applications generate huge volumes of logs in a short period of
time, leading to a difficulty in managing logs. Therefore, you can archive old log files.
This is called log rollover. Log files roll over automatically based on the defined criteria,
such as, the volume of log files or at regular intervals. As a result, managing the
NSJSP log files is simplified. The following are the benefits of the log rollover feature:
Manages and archives the log files depending on the volume and time interval.
Supports user-defined directory into which log files must roll over.
This section describes the following:
Attributes Introduced to Configure Log Rollover
Log Rollover Working
Log Rollover Based on File Size
Log Rollover Based on Timestamp
The archiveDirectory Attribute
Attributes Introduced to Configure Log Rollover
NSJSP includes new attributes that enable you to configure log rollover. This section
describes the new attributes.
The logging.properties file includes the following new attributes to support the
log rollover feature:
maxFileSize
Log rollover based on the maxFileSize attribute is called size-based rollover.
The attribute specifies the threshold size of the file for rollover. The size of the file
is measured in megabytes (MB). When the log file size exceeds the specified
value, it rolls over.
For information on configuring the maxFileSize attribute, see Configuring for Log
Rollover Based on File Size on page 5-16.










