protected function generateIndexingErrorLog(Item $itemToIndex, \Exception $e)
    {
        $message = 'Failed indexing Index Queue item ' . $itemToIndex->getIndexQueueUid();
        $data = ['code' => $e->getCode(), 'message' => $e->getMessage(), 'trace' => $e->getTraceAsString(), 'item' => (array)$itemToIndex];

        $this->logger->log(
            SolrLogManager::ERROR,
            $message,
            $data
        );
    }
protected function generateIndexingErrorLog(Item $itemToIndex, \Exception $e)
    {
        $message = 'Failed indexing Index Queue item ' . $itemToIndex->getIndexQueueUid();
        $data = ['code' => $e->getCode(), 'message' => $e->getMessage(), 'trace' => $e->getTraceAsString(), 'item' => (array)$itemToIndex];

        $this->logger->log(
            SolrLogManager::ERROR,
            $message,
            $data
        );
    }
protected function generateIndexingErrorLog ( Item $ itemToIndex , \ Exception $ e ) { $ message = 'Failed indexing Index Queue item ' . $ itemToIndex -> getIndexQueueUid ( ) ; $ data = [ 'code' => $ e -> getCode ( ) , 'message' => $ e -> getMessage ( ) , 'trace' => $ e -> getTraceAsString ( ) , 'item' => ( array ) $ itemToIndex ] ; $ this -> logger -> log ( SolrLogManager :: ERROR , $ message , $ data ) ; }
Generates a message in the error log when an error occured.

@param Item $itemToIndex
@param \Exception  $e
Generates a message in the error log when an error occured .