Pop\Log\Logger::info PHP Method

info() public method

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

Usage Example

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