/[cvs]/nfo/php/libs/net.php.pear/Log/file.php
ViewVC logotype

Diff of /nfo/php/libs/net.php.pear/Log/file.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by joko, Wed Feb 5 21:48:31 2003 UTC revision 1.3 by joko, Wed Feb 5 22:06:42 2003 UTC
# Line 116  class Log_file extends Log Line 116  class Log_file extends Log
116          $this->_logLines = array();          $this->_logLines = array();
117          $this->_writeOut = true;          $this->_writeOut = true;
118                    
119            $this->_timestampFormat = '%b %d %H:%M:%S';
120    
121            /* If a timestamp format has been provided, use it. */
122            if (!empty($conf['timestampFormat'])) {
123              $this->_timestampFormat = $conf['timestampFormat'];
124            }
125            
126          $this->PEAR();          $this->PEAR();
127      }      }
128            
# Line 159  class Log_file extends Log Line 166  class Log_file extends Log
166          }          }
167    
168          // Add to loglines array          // Add to loglines array
169          $this->_logLines[] = array('message' => $message, 'priority' => $priority, 'time' => strftime('%b %d %H:%M:%S'));          $this->_logLines[] = array('message' => $message, 'priority' => $priority, 'time' => strftime($this->_timestampFormat));
170    
171          // Notify observers          // Notify observers
172          $this->notifyAll(array('message' => $message, 'priority' => $priority));          $this->notifyAll(array('message' => $message, 'priority' => $priority));

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed