collect() public méthode

This method will filter the given messages with [[levels]] and [[categories]]. And if requested, it will also export the filtering result to specific medium (e.g. email).
public collect ( array $messages, boolean $final )
$messages array log messages to be processed. See [[Logger::messages]] for the structure of each message.
$final boolean whether this method is called at the end of the current application
 /**
  * {@inheritdoc}
  */
 public function collect($messages, $final)
 {
     if (!isset($this->client)) {
         $this->client = new \Raven_Client($this->dsn, $this->clientOptions);
     }
     parent::collect($messages, $final);
 }