Less than 1 minute
rotateLogFile
Rotate a log file.
public rotateLogFile({Array})
This function will rename a log file with a sequential suffix up to a certain number. So a file name server.log will become server.log.1, if server.log.1 exists it will be renamed to server.log.2, and so on.
Parameters
Parameter | Type | Description |
---|---|---|
$file | string | The file to rename |
$file_count | int | The maximum number of files. Default: 1 |
$offset | int | Rotation offset number to start from. Also used as an internal counter when being called recursively. |
Generated by Hazaar API Doc Generator