public function testMinimumSetup()
 {
     $settings = new Settings();
     $settings->setApiKey('953ca95742ee4fd6aab51c3d95c02a2d');
     $client = new Client($settings);
     $log = new Log();
     $log->setLogLevel('ERROR');
     $log->setMessage('Very bad error');
     $client->addLog($log);
     $this->assertTrue($client->sendLogs());
 }
示例#2
0
 /**
  * @param \AppEnlight\Endpoint\Data\Log $log
  * @return \AppEnlight\Client
  */
 public function addLog(Log $log)
 {
     $this->_logs[] = $log->toArray();
     return $this;
 }