code: 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;
      }
docs: Get log model.
  
  @param boolean $refresh [[@doctodo param_description:refresh]] [optional]
  
  @return [[@doctodo return_type:getLogModel]] [[@doctodo return_description:getLogModel]]