コード例 #1
0
ファイル: rollbar.php プロジェクト: boboldehampsink/rollbar
 public static function flush()
 {
     if (self::$instance == null) {
         return;
     }
     self::$instance->flush();
 }
コード例 #2
0
ファイル: rollbar.php プロジェクト: rohichurch/rohichurch-wp
 public static function flush()
 {
     self::$instance->flush();
 }
コード例 #3
0
 /**
  * Flush the rollbar Notifier.
  */
 public function flush()
 {
     $this->rollbarNotifier->flush();
 }
コード例 #4
0
 public function testBlockingBatched()
 {
     $config = self::$simpleConfig;
     $config['batched'] = true;
     $notifier = new RollbarNotifier($config);
     $uuid = $notifier->report_message('Hello world');
     $this->assertValidUUID($uuid);
     $this->assertEquals(1, $notifier->queueSize());
     $notifier->flush();
     $this->assertEquals(0, $notifier->queueSize());
 }