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-17
Configuring for Log Rollover
Configuring for Log Rollover Based on Timestamp
This section includes the syntax and examples that describe how to configure for
rollover based on timestamp.
The following is the syntax to configure the datePattern-based rollover:
com.tandem.servlet.logging.NSJSPLogHandler.datePattern =
'.'datePattern value
where, datePattern value is the time interval at which the rollover occurs and '.'
improves the readability of the file name.
The datePattern attribute value must follow certain guidelines for date and time
pattern strings.
Table 5-6 describes the date and time pattern strings you can use to configure for log
rollover.
Using combinations of the date and time pattern strings, you can configure
timestamp-based rollover.
Table 5-6. Timestamp Attributes
Alphabet Date or Time Component Examples
G Era designator AD
y Year 1992;92
M Month in a year July; Jul; 07
w Week in a year 25
W Week in a month 3
D Day in year 190
d Day in month 12
F Day of week in month 3
E Day in week Monday; Mon
a am/pm marker PM
H Hour in day (0-23) 0
k Hour in day (1-24) 24
K Hour in am/pm (0-11) 0
h Hour in am/pm (1-12) 12
m Minute in hour 30
s Second in minute 45
S Millisecond 900
z Time zone Pacific Standard Time; PST; GMT-08:00
Z Time zone -0800










