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


Top ↑

Parameters Parameters

$handle

(Required) Log file handle.


Top ↑

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.


Top ↑

Source Source

File: includes/functions/llms.functions.log.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.