Esempio n. 1
0
 public function entry($message, $level = Logular\LogLevel::INFO, $variable = null)
 {
     try {
         $message = parent::entry($message, $level, $variable);
     } catch (\Exception $e) {
         return;
     }
     echo $message, PHP_EOL;
     return $message;
 }
Esempio n. 2
0
 public function entry($message, $level = Logular\LogLevel::INFO, $variable = null)
 {
     try {
         $message = parent::entry($message, $level, $variable);
     } catch (Exception $e) {
         return;
     }
     if (!$this->logHandle) {
         throw new Exception('Cannot write to log file, log is not open');
     }
     fwrite($this->logHandle, $message . PHP_EOL);
     return $message;
 }