/** * Add a log record at the DEBUG level. * * This method allows for compatibility with common interfaces. * * @param string $message * @param string[] $context * @return bool * @throws WriteException */ 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); }