Example #1
0
 /**
  * Adds a log record at the CRITICAL level.
  *
  * This method allows for compatibility with common interfaces.
  *
  * @param  string $message The log message
  * @param  array $context The log context
  * @return bool Whether the record has been processed
  * @throws IoWriteException
  */
 public function critical($message, array $context = array())
 {
     try {
         return $this->logger->critical($message, $context);
     } catch (Error $ex) {
         throw new IoWriteException("Record with debug level could not be logged.", $ex);
     } catch (Exception $ex) {
         throw new IoWriteException("Record with debug level could not be logged.", $ex);
     }
 }