Monolog\Logger::emerg PHP Method

emerg() public method

This method allows to have an easy ZF compatibility.
public emerg ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
return boolean Whether the record has been processed
    public function emerg($message, array $context = array())
    {
        return $this->addRecord(self::ALERT, $message, $context);
    }

Usage Example

Example #1
0
 /**
  * Adds a log record at the EMERG level.
  *
  * @param string $message The log message
  * @param array $context The log context
  * @return Boolean Whether the record has been processed
  */
 public function emerg($message, array $context = array())
 {
     return $this->_logger->emerg($message, $context);
 }
All Usage Examples Of Monolog\Logger::emerg