Monolog\Logger::alert PHP Метод

alert() публичный Метод

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

Usage Example

Пример #1
0
 public function alert($message, array $args = [], array $context = [])
 {
     if (count($args)) {
         $message = vsprintf($message, $args);
     }
     return parent::alert($message, $context);
 }
All Usage Examples Of Monolog\Logger::alert