Class: Onlylogs::LogsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Onlylogs::LogsController
- Defined in:
- app/controllers/onlylogs/logs_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/onlylogs/logs_controller.rb', line 5 def index @max_lines = (params[:max_lines] || 100).to_i # Get the file path from params or use default @log_file_path = params[:log_file_path] || default_log_file_path @filter = params[:filter] @autoscroll = params[:autoscroll] != "false" @mode = @filter.blank? ? (params[:mode] || "live") : "search" # "live" or "search" end |