Re: Recycle PHP Log
| From: | Antony Dovgal | Date: | Thu, 25 Oct 2012 19:59:41 +0000 |
| Subject: | Re: Recycle PHP Log | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63637@lists.php.net to get a copy of this message | ||
Just use logrotate for that.
On 2012-10-25 23:16, Raymond Irving wrote:
Hello, How about adding an option to recycle the PHP log when it gets too big? For example: [php ini] max_error_log_size = 512k When the log file is larger than 512k rename the file by adding the current date or timestamp: php_error_as_at_2012_10_10.log __ Raymond-- Wbr, Antony Dovgal --- http://pinba.org - realtime profiling for PHP