Example #1
0
 function log($level, $msg)
 {
     if ($this->current_callback) {
         if ($this->debug >= $level) {
             call_user_func($this->current_callback, 'output', $msg);
         }
         return;
     }
     return PEAR_Common::log($level, $msg);
 }
Example #2
0
 function log($level, $msg, $append_crlf = true)
 {
     if ($this->current_callback) {
         if ($this->debug >= $level) {
             call_user_func($this->current_callback, 'output', $msg);
         }
         return;
     }
     return parent::log($level, $msg, $append_crlf);
 }