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-18
Configuring for Log Rollover
Table 5-7 describes the different time intervals at which rollover occurs.
The following are examples to configure the datePattern-based rollover:
com.tandem.servlet.logging.NSJSPLogHandler.datePattern =
'.'yyyy.MM.dd
In the given example, the log file rolls over every day, when the value of dd
changes.
com.tandem.servlet.logging.NSJSPLogHandler.datePattern =
'.'yyyy.MM.dd.hh
In the given example, the log file rolls over every hour, when the value of hh
changes.
In the given examples, '.' improves the readability of the file name.
Table 5-8 describes the behavior of log files in datePattern-based rollover.
Table 5-7. Time Intervals for Rollover
Attribute Description
"yyyy" Rollover occurs after every year from the time the log file is
created. The change in the value of yyyy triggers the rollover.
"yyyy.MM" Rollover occurs after every month from the time the log file is
created. The change in the value of MM triggers the rollover.
"yyyy.MM.W" Rollover occurs after every week in the month from the time the
log file is created. The change in the value of w triggers the
rollover.
"yyyy.MM.dd" Rollover occurs after every day from the time the log file is
created. The change in the value of dd triggers the rollover.
"yyyy.ww" Rollover occurs after every week in the year from the time the
log file is created. The change in the value of ww triggers the
rollover.
"yyyy.MM.dd.hh" Rollover occurs after every hour from the time the log file is
created. The change in the value of hh triggers the rollover.
"yyyy.MM.dd.hh.mm" Rollover occurs after every minute from the time the log file is
created. The change in the value of mm triggers the rollover.
"yyyy.MM.dd.hh.a" Rollover occurs at midday (12:00 hours) and at midnight (00:00
hours), when AM changes to PM or vice-versa. The change in
the value of a triggers the rollover.










