public function getLogModel($refresh = false)
    {
        $config = $this->config;
        if (isset($config['logModel'])) {
            if (!is_object($config['logModel'])) {
                if ($refresh) {
                    return DataInterfaceLog::find()->where(['id' => $config['logModel']])->one();
                } else {
                    return DataInterfaceLog::get($config['logModel']);
                }
            }
            if ($refresh) {
                return DataInterfaceLog::find()->where(['id' => $config['logModel']->primaryKey])->one();
            }

            return $config['logModel'];
        }

        return;
    }