コード例 #1
0
 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
 public function __construct($config, Exception $exception)
 {
     //Set settings
     $settings = new Settings();
     $settings->setApiKey($config['api_key']);
     $settings->setScheme($config['scheme']);
     $settings->setVersion($config['version']);
     $this->settings = $settings;
     $this->config = $config;
     $this->exception = $exception;
     $this->_processException();
 }