<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/php-logger/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/php-logger/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 05 Mar 2010 16:32:02 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/php-logger/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>DEFAULT_LOCAL_METHOD is useless</title><link>https://sourceforge.net/p/php-logger/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The DEFAULT_LOCAL_METHOD configuration directive appears to be useless. The fopen call does not currently have any logic to open the log file with any other method than "a".  Also , methods to set the local method are missing. Here is my implementation of this.&lt;/p&gt;
&lt;p&gt;# diff php-logger_v2.inc /home/ctatechs/tmp/phplogger/php-logger/php-logger_v2.inc&lt;br /&gt;
355d354&lt;br /&gt;
&amp;lt;     var $logfile_method;&lt;br /&gt;
364,365c363&lt;br /&gt;
&amp;lt;       $this-&amp;gt;local_set_logfile_name(DEFAULT_LOCAL_LOGFILE_NAME);&lt;br /&gt;
&amp;lt;       $this-&amp;gt;local_set_logfile_method(DEFAULT_LOCAL_METHOD);&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;         $this-&amp;gt;local_set_logfile_name(DEFAULT_LOCAL_LOGFILE_NAME);&lt;br /&gt;
369,371c367&lt;br /&gt;
&amp;lt;     function local_set_logfile_method($method) {&lt;br /&gt;
&amp;lt;       $this-&amp;gt;logfile_method=$method;&lt;br /&gt;
&amp;lt;     }&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;   &lt;br /&gt;
376c372&lt;br /&gt;
&amp;lt; &lt;br /&gt;
---&lt;br /&gt;
&amp;gt; &lt;br /&gt;
406,408c402,403&lt;br /&gt;
&amp;lt;       }&lt;br /&gt;
&amp;lt;       $file_mode=$this-&amp;gt;logfile_method=="APPEND" ? "a" : "w+";&lt;br /&gt;
&amp;lt;         if ($this-&amp;gt;file_pointer = fopen ($this-&amp;gt;log_file, $file_mode))&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;         }&lt;br /&gt;
&amp;gt;         if ($this-&amp;gt;file_pointer = fopen ($this-&amp;gt;log_file, "a"))&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 05 Mar 2010 16:32:02 -0000</pubDate><guid>https://sourceforge.net73abe4c6aea8674779e574e74f22a61caf89ef7e</guid></item></channel></rss>