Ejemplo n.º 1
0
 public function testLogging()
 {
     Logger::log(Logger::EMERGENCY, "Test logger!");
     Logger::log(Logger::ALERT, "Test logger!");
     Logger::log(Logger::CRITICAL, "Test logger!");
     Logger::log(Logger::ERROR, "Test logger!");
     Logger::log(Logger::WARNING, "Test logger!");
     Logger::log(Logger::NOTICE, "Test logger!");
     Logger::log(Logger::INFO, "Test logger!");
     Logger::log(Logger::DEBUG, "Test logger!");
     $this->assertStringEqualsFile(vfsStream::url("logs/file.log"), $this->log);
 }
Ejemplo n.º 2
0
 public function log($message, $level = self::LOG_INFO)
 {
     \ntentan\logger\Logger::log($level, $message);
 }