Answers.Body: <p>I would look to the feed-me plugin itself:</p>
  <p>The controller:
  <a href="https://github.com/craftcms/feed-me/blob/develop/src/controllers/LogsController.php" rel="nofollow noreferrer">https://github.com/craftcms/feed-me/blob/develop/src/controllers/LogsController.php</a></p>
  <p>Which calls the service: <a href="https://github.com/craftcms/feed-me/blob/3a8246c055240c46ae9307f3ccada3c42d296920/src/services/Logs.php#L71" rel="nofollow noreferrer">https://github.com/craftcms/feed-me/blob/3a8246c055240c46ae9307f3ccada3c42d296920/src/services/Logs.php#L71</a></p>
  <p>Essentially it just reads the log file and presents it to a template, so you could use JS/AJAX to return the results every <strong>x</strong> seconds.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-22T15:27:46.460Z
Answers.LastActivityDate: 2020-06-22T15:38:51.640Z
Answers.LastEditDate: 2020-06-22T15:38:51.640Z
Answers.UserDisplayName: dmatthams
Body: <p>So I've created a web portal for a client so they could upload a file which triggers a Feed Me feed (on that file). I handle the upload and triggering of the feed with a custom Module. I trigger the feed using the php <strong>exec</strong> function and the feed's <strong>Direct Feed URL</strong>. I would love to show the user the log for the Feed's task while it's running, so they would know if any errors occur. Is there a way to do this?</p>
  
Tags: <modules>
Title: Feed Me logs access from the front-end
ThreadText: # Feed Me logs access from the front-end
  
  (Asked by: username_0 on 2020-06-19)
  
  So I've created a web portal for a client so they could upload a file which triggers a Feed Me feed (on that file). I handle the upload and triggering of the feed with a custom Module. I trigger the feed using the php **exec** function and the feed's **Direct Feed URL**. I would love to show the user the log for the Feed's task while it's running, so they would know if any errors occur. Is there a way to do this?
  
  **Tags:** modules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-06-22. Score: 1
  
  I would look to the feed-me plugin itself:
  
  The controller:
  <https://github.com/craftcms/feed-me/blob/develop/src/controllers/LogsController.php>
  
  Which calls the service: <https://github.com/craftcms/feed-me/blob/3a8246c055240c46ae9307f3ccada3c42d296920/src/services/Logs.php#L71>
  
  Essentially it just reads the log file and presents it to a template, so you could use JS/AJAX to return the results every **x** seconds.
  
  
  ---
  
  