Classes/Eel/ElasticSearchQueryBuilder.php
public function log($message = null): ElasticSearchQueryBuilder
    {
        $this->logThisQuery = true;
        $this->logMessage = $message;

        return $this;
    }
public function log($message = null): ElasticSearchQueryBuilder
    {
        $this->logThisQuery = true;
        $this->logMessage = $message;

        return $this;
    }
public function log ( $ message = null ) : ElasticSearchQueryBuilder { $ this -> logThisQuery = true ; $ this -> logMessage = $ message ; return $ this ; }
Log the current request to the Elasticsearch log for debugging after it has been executed.

@param string $message an optional message to identify the log entry
@return ElasticSearchQueryBuilder
@api
Log the current request to the Elasticsearch log for debugging after it has been executed .