{$this->connectionId}->{$this->logCollectionName}; } /** * Stores log messages into database. * @param array $logs list of log messages */ public function processLogs($logs) { $collection = $this->getMongoConnection(); foreach($logs as $log){ $collection->insert( array( 'level' => $log[1], 'category' => $log[2], 'logtime' => (int)$log[3], 'message' => $log[0], ) ); } } }