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

error() public méthode

Runtime errors that do not require immediate action but should typically be logged and monitored.
public error ( string $message, array $context = [] ) : null
$message string
$context array
Résultat null
    public function error($message, array $context = array())
    {
        $this->log('error', $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);
 }