diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-12-11 13:15:00 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-12-11 13:15:00 -0500 |
commit | 939a400fd3dc43216a7c43bcfb66fb18fb557279 (patch) | |
tree | 36c548b4844e64018460727f228d377ddc35c93f /extlib/XMPPHP/Log.php | |
parent | fb837b86c5ab46f92fba37db0d37d49071d71a74 (diff) |
upgrade XMPPHP to upstream version
darcs-hash:20081211181500-5ed1f-5042b1ff2ed5de36500200f3ea2aa91108f1f853.gz
Diffstat (limited to 'extlib/XMPPHP/Log.php')
-rw-r--r-- | extlib/XMPPHP/Log.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extlib/XMPPHP/Log.php b/extlib/XMPPHP/Log.php index 635e68da4..a9bce3d84 100644 --- a/extlib/XMPPHP/Log.php +++ b/extlib/XMPPHP/Log.php @@ -22,6 +22,7 @@ * @package XMPPHP * @author Nathanael C. Fritz <JID: fritzy@netflint.net> * @author Stephan Wentz <JID: stephan@jabber.wentz.it> + * @author Michael Garvin <JID: gar@netflint.net> * @copyright 2008 Nathanael C. Fritz */ @@ -31,6 +32,7 @@ * @package XMPPHP * @author Nathanael C. Fritz <JID: fritzy@netflint.net> * @author Stephan Wentz <JID: stephan@jabber.wentz.it> + * @author Michael Garvin <JID: gar@netflint.net> * @copyright 2008 Nathanael C. Fritz * @version $Id$ */ @@ -82,7 +84,7 @@ class XMPPHP_Log { */ public function log($msg, $runlevel = self::LEVEL_INFO) { $time = time(); - $this->data[] = array($this->runlevel, $msg, $time); + #$this->data[] = array($this->runlevel, $msg, $time); if($this->printout and $runlevel <= $this->runlevel) { $this->writeLine($msg, $runlevel, $time); } @@ -112,5 +114,6 @@ class XMPPHP_Log { protected function writeLine($msg, $runlevel, $time) { //echo date('Y-m-d H:i:s', $time)." [".$this->names[$runlevel]."]: ".$msg."\n"; echo $time." [".$this->names[$runlevel]."]: ".$msg."\n"; + flush(); } } |