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