Net/XMPP/Log.php
authoredward <edward@roojs.com>
Mon, 15 Jan 2018 04:36:34 +0000 (12:36 +0800)
committeredward <edward@roojs.com>
Mon, 15 Jan 2018 04:36:34 +0000 (12:36 +0800)
Net/XMPP/Log.php

index 79a25ed..ec45c28 100644 (file)
@@ -71,8 +71,7 @@ class Net_XMPP_Log
      * @param boolean $printout
      * @param string  $runlevel
      */
-    public function __construct($printout = false, $runlevel = self::LEVEL_INFO) 
-    {
+    public function __construct($printout = false, $runlevel = self::LEVEL_INFO) {
         $this->printout = (boolean) $printout;
         $this->runlevel = (int) $runlevel;
     }
@@ -84,8 +83,7 @@ class Net_XMPP_Log
      * @param string  $msg
      * @param integer $runlevel
      */
-    public function log($msg, $runlevel = self::LEVEL_INFO) 
-    {
+    public function log($msg, $runlevel = self::LEVEL_INFO) {
         $time = time();
         #$this->data[] = array($this->runlevel, $msg, $time);
         if ($this->printout and $runlevel <= $this->runlevel) {
@@ -100,8 +98,7 @@ class Net_XMPP_Log
      * @param boolean $clear
      * @param integer $runlevel
      */
-    public function printout($clear = true, $runlevel = null) 
-    {
+    public function printout($clear = true, $runlevel = null) {
         if ($runlevel === null) {
             $runlevel = $this->runlevel;
         }
@@ -115,8 +112,7 @@ class Net_XMPP_Log
         }
     }
 
-    protected function writeLine($msg, $runlevel, $time) 
-    {
+    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();