Pop\Log\Logger::emerg PHP Method

emerg() public method

Method to add an EMERG log entry
public emerg ( mixed $message, array $options = [] ) : Logger
$message mixed
$options array
return Logger
    public function emerg($message, array $options = array())
    {
        return $this->log(self::EMERG, $message, $options);
    }

Usage Example

Example #1
0
 public function testEmerg()
 {
     $l = new Logger(new File(__DIR__ . '/../tmp/app.log'));
     $l->emerg('Test log message');
     $this->assertTrue(file_exists(__DIR__ . '/../tmp/app.log'));
     $this->assertGreaterThan(0, filesize(__DIR__ . '/../tmp/app.log'));
     unlink(__DIR__ . '/../tmp/app.log');
 }
All Usage Examples Of Pop\Log\Logger::emerg