| 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 |
|
|
| 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)); |