]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - extlib/XMPPHP/Log.php
Merge branch 'testing' of git@gitorious.org:laconica/mainline into testing
[quix0rs-gnu-social.git] / extlib / XMPPHP / Log.php
index 635e68da475cada8b4cc8c00c76b2a077cbc0943..a9bce3d8410056612b2f20095e11390d78169a8c 100644 (file)
@@ -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();
        }
 }