protected function getLogCollection($environment) { if ($this->_logCollection) { return $this->_logCollection; } $databaseName = $this->_config->getLogDatabaseName($environment); $collectionName = $this->_config->getLogCollectionName($environment); $this->_logCollection = $this->getClient($environment)->getDatabase($databaseName)->getCollection($collectionName); return $this->_logCollection; }