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-16
Configuring for Log Rollover
Configuring the archiveDirectory Attribute
Configuring for Log Rollover Based on File Size
This section includes the syntax and examples that describe how to configure for
rollover based on file size.
The following is the syntax to configure maxFileSize-based rollover:
com.tandem.servlet.logging.NSJSPLogHandler.maxFileSize = file
size
where, file size is the threshold size of the log file that triggers the rollover.
The following are examples to configure maxFileSize-based rollover:
com.tandem.servlet.logging.NSJSPLogHandler.maxFileSize = 6
In the given example, although the set value is 6, the log file rolls over when the file
size exceeds 10 MB, which is the base threshold that triggers the rollover.
com.tandem.servlet.logging.NSJSPLogHandler.maxFileSize = 20
In the given example, the log file rolls over when the file size exceeds 20 MB.
Table 5-5 describes the behavior of log files in maxFileSize-based rollover.
Table 5-5. Behavior of Log Files in maxfilesize-based Rollover
Log File
Destination
Complete Path
of Log File
archiveDi
rectory
New Location After
Rollover Comments
abc.log
(Default
location)
<NSJSP_HOME>/
abc.log
Not
specified
<NSJSP_HOME>/ab
c.log.<timestam
p>
When the
threshold is
exceeded, the log
file rolls over, and
the timestamp is
appended to the
file name. The file
continues to
remain in the
same location.
/sample/a
bc.log
(User-
defined
location)
/sample/abc.l
og
Not
specified
/sample/abc.log
.<timestamp>
abc.log
(Default
location)
<NSJSP_HOME>/
abc.log
/archive/
logs/
/archive/logs/
abc.log.<timest
amp>
The log file rolls
over to the
archiveDirect
ory when the
threshold is
exceeded, and
the timestamp is
appended to the
file name.
/sample/a
bc.log
(User-
defined
location)
/sample/abc.l
og
/archive/
logs/
/archive/logs/
abc.log.<timest
amp>










