예제 #1
0
파일: Logger.php 프로젝트: laiello/firephp
 public function log($repString, $message)
 {
     $rep = FirePHP_Rep::factory($repString);
     $rep->setData($message);
     // Check if the representation should actually be displayed
     if (!$rep->shouldDisplay()) {
         return false;
     }
     foreach ($this->_bootstrap->getClients() as $client) {
         $client->log($rep);
     }
     return true;
 }
예제 #2
0
파일: CLI.php 프로젝트: laiello/firephp
 public function log(FirePHP_Rep $rep)
 {
     echo $rep->toString() . "\n";
 }