public function debug($message, array $context = array()) { try { return $this->logger->debug($message, $context); } catch (Error $ex) { } catch (Exception $ex) { } throw new WriteException("Record with debug level could not be logged.", $ex); }