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-10
LogFactory in NSJSP 6.0
attribute. At this time, a new log file with the file name nsjsp.log.2009.08.29 is
created and new log messages are saved in this file.
If the archiveDirectory attribute is specified and if it points to a valid directory on
the NonStop operating system, the rollover log files are moved to the archive directory.
If the value of the archiveDirectory attribute points to an invalid directory location,
the rollover log files remain in the directory pointed by the destination attribute.
The values of the datePattern attribute that do not follow the guidelines for date and
time string pattern are considered as invalid and the timestamp-based rollover feature
is disabled. If the datePattern value is invalid, an error message is logged to
STDERR.
Only one type of rollover feature is supported at a time. The size-based rollover feature
has precedence over the timestamp-based rollover feature. If the maxFileSize and
datePattern attributes are specified in the logging.properties file and are set
to valid values, the size-based rollover is enabled. For example, if the maxFileSize
attribute is set to 12 and the datePattern attribute is set as yyyy-MM-dd:HH, the log
rollover executes when the size of the log file is 12 MB. If the value of the
maxFileSize attribute is invalid and the value of the datePattern attribute is valid,
the size-based rollover feature is disabled and the timestamp-based rollover feature is
enabled.
The value of the destination attribute must be either an absolute path or a relative path
of the log file. If the destination entered is a relative path, the log files are placed at a
directory relative to the ${catalina.base}/logs directory.
Example 6-1 displays a logging.properties file in NSJSP 6.0.










