FastFeed\Logger\Logger::alert PHP Méthode

alert() public méthode

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
public alert ( string $message, array $context = [] ) : null
$message string
$context array
Résultat null
    public function alert($message, array $context = array())
    {
        $this->log('alert', $message, $context);
    }

Usage Example

Exemple #1
0
 public function testLogger()
 {
     $this->logger->emergency('testing Logger');
     $this->logger->alert('testing Logger');
     $this->logger->critical('testing Logger');
     $this->logger->error('testing Logger');
     $this->logger->warning('testing Logger');
     $this->logger->notice('testing Logger');
     $this->logger->info('testing Logger');
     $this->logger->debug('testing Logger');
     $this->assertTrue(true);
 }