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
Esempio n. 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);
 }
Esempio n. 2
0
 /**
  * @param string $message
  * @param array $context
  * @return bool
  */
 public function emerg($message, array $context = array())
 {
     return parent::emerg($message, $context);
 }
 /**
  * Adds a log record at the EMERGENCY level.
  * 
  * This method allows for compatibility with common interfaces.
  *
  * @param string $message The log message
  * @param array $context The log context
  * @return Boolean Whether the record has been processed
  * @static 
  */
 public static function emerg($message, $context = array())
 {
     return \Monolog\Logger::emerg($message, $context);
 }
Esempio n. 4
0
 /**
  * System is unusable.
  *
  * @param string $message
  * @param array  $context
  *
  * @return void
  */
 public function emergency($message, array $context = array())
 {
     $this->monolog->emerg($message, $context);
 }