Methods
H
L
P
R
S
Constants
INTERNAL_PARAMS = %w(controller action format _method only_path)
Instance Public methods
halted_callback(event)
    # File actionpack/lib/action_controller/log_subscriber.rb, line 31
31:     def halted_callback(event)
32:       info "Filter chain halted as #{event.payload[:filter]} rendered or redirected"
33:     end
logger()
    # File actionpack/lib/action_controller/log_subscriber.rb, line 61
61:     def logger
62:       ActionController::Base.logger
63:     end
process_action(event)
    # File actionpack/lib/action_controller/log_subscriber.rb, line 17
17:     def process_action(event)
18:       payload   = event.payload
19:       additions = ActionController::Base.log_process_action(payload)
20: 
21:       status = payload[:status]
22:       if status.nil? && payload[:exception].present?
23:         status = Rack::Utils.status_code(ActionDispatch::ExceptionWrapper.new({}, payload[:exception]).status_code)
24:       end
25:       message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in %.0fms" % event.duration
26:       message << " (#{additions.join(" | ")})" unless additions.blank?
27: 
28:       info(message)
29:     end
redirect_to(event)
    # File actionpack/lib/action_controller/log_subscriber.rb, line 41
41:     def redirect_to(event)
42:       info "Redirected to #{event.payload[:location]}"
43:     end
send_data(event)
    # File actionpack/lib/action_controller/log_subscriber.rb, line 45
45:     def send_data(event)
46:       info("Sent data %s (%.1fms)" % [event.payload[:filename], event.duration])
47:     end
send_file(event)
    # File actionpack/lib/action_controller/log_subscriber.rb, line 35
35:     def send_file(event)
36:       message = "Sent file %s"
37:       message << " (%.1fms)"
38:       info(message % [event.payload[:path], event.duration])
39:     end
start_processing(event)
    # File actionpack/lib/action_controller/log_subscriber.rb, line 7
 7:     def start_processing(event)
 8:       payload = event.payload
 9:       params  = payload[:params].except(*INTERNAL_PARAMS)
10:       format  = payload[:format]
11:       format  = format.to_s.upcase if format.is_a?(Symbol)
12: 
13:       info "Processing by #{payload[:controller]}##{payload[:action]} as #{format}"
14:       info "  Parameters: #{params.inspect}" unless params.empty?
15:     end