/** * Appends a new event to the mongo database. * * @throws LoggerException If the pattern conversion or the Insert statement fails. */ public function append(LoggerLoggingEvent $event) { if ($this->canAppend == true && $this->collection != null) { $document = $this->format($event); $this->collection->Insert($document); } }