Пример #1
0
 /**
  * Adds a log record.
  *
  * @param  integer $level The logging level
  * @param  string $message The log message
  * @param  array $context The log context
  * @return bool
  * @throws IoWriteException
  */
 public function addRecord($level, $message, array $context = array())
 {
     try {
         return $this->logger->addRecord($level, $message, $context);
     } catch (Error $ex) {
         throw new IoWriteException("Record could not be added.", $ex);
     } catch (Exception $ex) {
         throw new IoWriteException("Record could not be added.", $ex);
     }
 }