Log Functions
Rotation
rotateLog
Rotate a log file
Usage
rotateLog [ --dry-run ] logFile count
Rotate a log file
Backs up files as:
logFile
logFile.1
logFile.2
logFile.3
But maintains filedescriptors forlogFile`.
Arguments
logFile- Required. A log file which exists.count- Required. Integer of log files to maintain.
Return codes
0- Success1- Environment error2- Argument error
rotateLogs
Rotate log files
Usage
rotateLogs [ --dry-run ] logPath count
Rotate log files
For all log files in logPath with extension .log, rotate them safely
Arguments
logPath- Required. Path where log files exist.count- Required. Integer of log files to maintain.
Return codes
0- Success1- Environment error2- Argument error