Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63637 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49607 invoked from network); 25 Oct 2012 19:59:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2012 19:59:47 -0000 Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daylessday.org from 95.163.84.66 cause and error) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 95.163.84.66 mail.daylessday.org Received: from [95.163.84.66] ([95.163.84.66:55147] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/BF-59506-03A99805 for ; Thu, 25 Oct 2012 15:59:45 -0400 Received: from thinkx201.site (95-26-150-153.broadband.corbina.ru [95.26.150.153]) by daylessday.org (Postfix) with ESMTPSA id DF95BE0D8F for ; Thu, 25 Oct 2012 23:59:41 +0400 (MSK) Message-ID: <50899A2D.2060601@daylessday.org> Date: Thu, 25 Oct 2012 23:59:41 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Recycle PHP Log From: tony@daylessday.org (Antony Dovgal) 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