llms_backup_log( string $handle )
Copy a log file that is greater than or equal to the max allowed log file size
Description Description
If the log file’s size is larger than the maximum allowed log file size (5MB) it will rename the log, adding the current timestamp as a suffix and .bk
to the extension.
Future logs to the same file will result in a new logfile being created, ensuring that log files never grow too large which could cause performance issues during reads and writes.
See also See also
Parameters Parameters
- $handle
-
(Required) Log file handle.
Return Return
(null|boolean|string) Returns null
if the log file is not larger than the max size, false
if an error is encountered, and the new log file path on success.
Source Source
File: includes/functions/llms.functions.log.php
Changelog Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |