Pop\Log\Logger::crit PHP Method

crit() public method

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

Usage Example

Example #1
0
 public function testCrit()
 {
     $l = new Logger(new File(__DIR__ . '/../tmp/app.log'));
     $l->crit('Test log message');
     $this->assertTrue(file_exists(__DIR__ . '/../tmp/app.log'));
     $this->assertGreaterThan(0, filesize(__DIR__ . '/../tmp/app.log'));
     unlink(__DIR__ . '/../tmp/app.log');
 }