public function handle(array $record)
 {
     if ($record['level'] < $this->level || isset($record['context']['just_log']) && $record['context']['just_log']) {
         return false;
     }
     $bubble = \Bubble\Monolog\MonologBubble::monolog2bubble($record);
     $stored = $this->catchBubble->getBubble($bubble['record'], $bubble['details']);
     if ($stored) {
         $record['extra']['repetitions'] = $stored['repetitions'];
         $this->handler->handle($record);
         return false === $this->bubble;
     }
     return false;
 }
 public function testFingerPrint()
 {
     $this->assertEquals(array('message' => 'one message', 'context' => array(), 'level' => 100, 'level_name' => 'DEBUG'), MonologBubble::fingerPrint($this->getRecord(Logger::DEBUG, 'one message')));
 }
 private function loggerRecord($exceptionContext)
 {
     return MonologBubble::fingerPrint(array('message' => 'Unhandled exception', 'datetime' => new \DateTime(), 'context' => array('exception' => $exceptionContext)));
 }