code: public function actionViewLog()
      {
          if (empty($_GET['id']) || !($dataInterfaceLog = DataInterfaceLog::get($_GET['id']))) {
              throw new HttpException(404, 'Data interface log could not be found');
          }
          $this->params['dataInterfaceLog'] = $dataInterfaceLog;
          if (Yii::$app->request->isAjax && !empty($_GET['package'])) {
              Yii::$app->response->data = $dataInterfaceLog->dataPackage;
  
              return;
          } elseif (Yii::$app->request->isAjax) {
              Yii::$app->response->taskOptions = ['title' => 'View Log', 'modalClass' => 'modal-xl'];
              Yii::$app->response->task = 'dialog';
          }
          if ($dataInterfaceLog->status === 'queued') {
              Yii::$app->response->view = 'view_log_queued';
          } else {
              Yii::$app->response->view = 'view_log';
          }
      }
docs: [[@doctodo method_description:actionViewLog]].
  
  @throws HttpException [[@doctodo exception_description:HttpException]]
  @return [[@doctodo return_type:actionViewLog]] [[@doctodo return_description:actionViewLog]]