attpcdaq.daq.views.pages.show_log_page

attpcdaq.daq.views.pages.show_log_page(request, pk, program)[source]

Retrieve and render the log file for the given program.

This can be used to display the end of the log file for the ECC server process or the data router process.

Parameters:
  • request (HttpRequest) – The request object.
  • pk (int) – The integer primary key of the data source whose logs we want to view.
  • program (str) – The program whose logs we want. Must be one of ‘ecc’ or ‘data_router’.
Returns:

Renders the log_file.html template with the given log file as content.

Return type:

HttpResponse