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; }
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; }