<% begin %> <% file_path = File.join Tailog.log_path, params[:file] %> <% File.open file_path do |file| %> <% file_size = file.size %> <% file.seek params[:seek].to_i %> <% file.each_line do |line| %>

<%= h line %>

<% end %> <% end %> <% rescue => error %>

<%= h error.class %>: <%= h error.message %>

<% error.backtrace.each do |backtrace| %> <%= h backtrace %>
<% end %>
<% end %>