yii\elasticsearch\ElasticsearchTarget::getContextMessage PHP Method

getContextMessage() protected method

If [[includeContext]] is true, returns an empty string (so that context message in [[collect]] is not generated), expecting that context will be appended to every message in [[prepareMessage]].
protected getContextMessage ( ) : array
return array the context information
    protected function getContextMessage()
    {
        if (null === $this->_contextMessage || !$this->cacheContext) {
            $this->_contextMessage = ArrayHelper::filter($GLOBALS, $this->logVars);
        }
        return $this->_contextMessage;
    }