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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php