Re: [PHP-DEV] Recycle PHP Log
Most of these utilities require admin user access to the server. For example, Logrotate is normally run as a daily cron job There are a lot of shared services that will not allow users to install or run certain jobs. How difficult will if be to add this feature to PHP? Will it require major change to the program? __ Raymond On Mon, Oct 29, 2012 at 4:10 AM, Pierre Joye pierre@gmail.com wrote: hi, No, we won't implement that as it is already available by default on windows. check the AutoBackupLogFiles option. For people not using windows log system but classic files, there are plenty of tools to do it as well. Cheers, On Sat, Oct 27, 2012 at 11:53 AM, Kris Craig kris.cr...@gmail.com wrote: On Sat, Oct 27, 2012 at 2:17 AM, Mario Brandt jbl...@gmail.com wrote: Hi, On Thu, Oct 25, 2012 at 9:59 PM, Antony Dovgal t...@daylessday.org wrote: Just use logrotate for that. On Windows there is no logrotate by defautl, so that would be a nice feature ;) Cheers Mario -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php I agree. This would definitely be a nice feature to have, at least for the Windows build. --Kris -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Recycle PHP Log
So? Non-administrative users should not be worrying about rotating log files. Shared services have administrators who are keenly interested in not running out of disk space due to silly things like log files and provide rotation of them (or if not, you have a choice of better providers who do). On Tue, Oct 30, 2012 at 1:33 PM, Raymond Irving xwis...@gmail.com wrote: Most of these utilities require admin user access to the server. For example, Logrotate is normally run as a daily cron job There are a lot of shared services that will not allow users to install or run certain jobs. How difficult will if be to add this feature to PHP? Will it require major change to the program? __ Raymond On Mon, Oct 29, 2012 at 4:10 AM, Pierre Joye pierre@gmail.com wrote: hi, No, we won't implement that as it is already available by default on windows. check the AutoBackupLogFiles option. For people not using windows log system but classic files, there are plenty of tools to do it as well. Cheers, On Sat, Oct 27, 2012 at 11:53 AM, Kris Craig kris.cr...@gmail.com wrote: On Sat, Oct 27, 2012 at 2:17 AM, Mario Brandt jbl...@gmail.com wrote: Hi, On Thu, Oct 25, 2012 at 9:59 PM, Antony Dovgal t...@daylessday.org wrote: Just use logrotate for that. On Windows there is no logrotate by defautl, so that would be a nice feature ;) Cheers Mario -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php I agree. This would definitely be a nice feature to have, at least for the Windows build. --Kris -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Recycle PHP Log
hi, No, we won't implement that as it is already available by default on windows. check the AutoBackupLogFiles option. For people not using windows log system but classic files, there are plenty of tools to do it as well. Cheers, On Sat, Oct 27, 2012 at 11:53 AM, Kris Craig kris.cr...@gmail.com wrote: On Sat, Oct 27, 2012 at 2:17 AM, Mario Brandt jbl...@gmail.com wrote: Hi, On Thu, Oct 25, 2012 at 9:59 PM, Antony Dovgal t...@daylessday.org wrote: Just use logrotate for that. On Windows there is no logrotate by defautl, so that would be a nice feature ;) Cheers Mario -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php I agree. This would definitely be a nice feature to have, at least for the Windows build. --Kris -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Recycle PHP Log
Hi, On Thu, Oct 25, 2012 at 9:59 PM, Antony Dovgal t...@daylessday.org wrote: Just use logrotate for that. On Windows there is no logrotate by defautl, so that would be a nice feature ;) Cheers Mario -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Recycle PHP Log
On Sat, Oct 27, 2012 at 2:17 AM, Mario Brandt jbl...@gmail.com wrote: Hi, On Thu, Oct 25, 2012 at 9:59 PM, Antony Dovgal t...@daylessday.org wrote: Just use logrotate for that. On Windows there is no logrotate by defautl, so that would be a nice feature ;) Cheers Mario -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php I agree. This would definitely be a nice feature to have, at least for the Windows build. --Kris
Re: [PHP-DEV] Recycle PHP Log
Hi! On Windows there is no logrotate by defautl, so that would be a nice feature ;) I agree. This would definitely be a nice feature to have, at least for the Windows build. There are a number of solutions for that: https://www.google.com/search?q=logrotate+windows PHP doesn't have to include the whole world so that nobody has to install any utilities besides it. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Recycle PHP Log
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