public function emergency($message, array $context = array())
    {
        try
        {
            return $this->logger->emergency($message, $context);
        }
        catch (Error $ex)
        {}
        catch (Exception $ex)
        {}

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

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

This method allows for compatibility with common interfaces.

@param string $message
@param string[] $context
@return bool
@throws WriteException
Add a log record at the EMERGENCY level .