HP Storage Essentials Enterprise Edition Software User Manual
Page 227

HP Storage Essentials SRM 6.0 User Guide 189
Log file timestamp - A timestamp (YYMMDD-HHMMSS) is inserted into the filename at its
creation, making its origin more quickly identified. (i.e., appstorm.20071012-122025.log).
Log file sort criteria - Logfiles sort in order of their creation, based upon the timestamp in their
filename.
Log file configurable parameters - Configurable parameters for all log files are these:
• Maximum size of the logfile before it rolls over (MaxFileSize). This parameter resides in
log4j.xml
and is used to limit the size of an individual log file.
• Maximum total amount of space the logfile can use (MaxTotalSize). This parameter
resides in log4j.xml is is used to limit the total size of a set of log files (e.g., all appstorm
logs).
Log file “appenders” manage the log file rollover when the MaxFileSize and MaxTotalSize
parameters are reached. These parameters can be changed for any log file by using the
appstorm.
.xml
At the log4j.xmldirectory indicated above, change the appender values to the new desired
values:
Example 1 (Log file rollover based on size) - Assume the appstorm.
MaxFileSize=100MB and MaxTotalSize=900MB.
• If the size of the current appstorm.
starts, a new appstorm.
• If any rollover occurs, and the total size of all appstorm.
MB, the oldest appstorm.
MB.
• Whenever a time-based or size-based rollover occurs, a footer is appended to the current
file, and a header is placed on the new file. These headers and footers describe why the
rollover occurred and the logfile to, or from, which it is being rolled.
Example 2 (Log file rollover based on time) - Assume a new day occurred. The current
logfile (appstorm.20071012-154625.log) would receive this footer:
****Log File Rollover due to Time****
*****Next Log
File:C:/hp/StorageEssentials/logs/appstorm.20071013-000055.log****
The next logfile (appstorm.20071013-000055.log) would receive this header:
****Log Fle ROllover due to Time****
****Previousl Log
File:C:/hp/StorageEssentiaals/logs/appstorm.2007-154625.log****