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-19
Configuring for Log Rollover
Configuring the archiveDirectory Attribute
This section includes the syntax and examples that describe how to configure the
archiveDirectory attribute.
The following is the syntax to configure the archiveDirectory:
com.tandem.servlet.logging.NSJSPLogHandler.archiveDirectory =
archive directory
where, archive directory is the location to which the log files rollover.
The following is an example to configure the archiveDirectory:
com.tandem.servlet.logging.NSJSPLogHandler.archiveDirectory =
tempLogs
In the given example, the log file rolls over to the tempLogs directory. The complete
path of the archiveDirectory is <NSJSP_HOME>/tempLogs.
Table 5-8. Behavior of Log Files in datepattern-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.<time
stamp>
Not
specified
<NSJSP_HOME>/ab
c.log.<timestam
p>
When NSJSP
starts, the
timestamp is
appended to the
log file name.
When the
threshold is
exceeded, the log
file rolls over, and
it continues to
remain in the
same location.
/sample/a
bc.log
(User-
defined
location)
/sample/abc.l
og.<timestamp
>
Not
specified
/sample/abc.log
.<timestamp>
abc.log
(Default
location)
<NSJSP_HOME>/
abc.log.<time
stamp>
/archive/
logs/
/archive/logs/
abc.log.<timest
amp>
When NSJSP
starts, the
timestamp is
appended to the
log file name. The
log file rolls over
to the
archiveDirect
ory when the
threshold is
exceeded.
/sample/a
bc.log
(User-
defined
location)
/sample/abc.l
og.<timestamp
>
/archive/
logs/
/archive/logs/
abc.log.<timest
amp>










