Parent

Class Index [+]

Quicksearch

ActionController::LogSubscriber

Constants

INTERNAL_PARAMS

Public Instance Methods

logger() click to toggle source
    # File lib/action_controller/log_subscriber.rb, line 50
50:     def logger
51:       ActionController::Base.logger
52:     end
process_action(event) click to toggle source
    # File lib/action_controller/log_subscriber.rb, line 15
15:     def process_action(event)
16:       payload   = event.payload
17:       additions = ActionController::Base.log_process_action(payload)
18: 
19:       message = "Completed #{payload[:status]} #{Rack::Utils::HTTP_STATUS_CODES[payload[:status]]} in %.0fms" % event.duration
20:       message << " (#{additions.join(" | ")})" unless additions.blank?
21: 
22:       info(message)
23:     end
redirect_to(event) click to toggle source
    # File lib/action_controller/log_subscriber.rb, line 31
31:     def redirect_to(event)
32:       info "Redirected to #{event.payload[:location]}"
33:     end
send_data(event) click to toggle source
    # File lib/action_controller/log_subscriber.rb, line 35
35:     def send_data(event)
36:       info("Sent data %s (%.1fms)" % [event.payload[:filename], event.duration])
37:     end
send_file(event) click to toggle source
    # File lib/action_controller/log_subscriber.rb, line 25
25:     def send_file(event)
26:       message = "Sent file %s"
27:       message << " (%.1fms)"
28:       info(message % [event.payload[:path], event.duration])
29:     end
start_processing(event) click to toggle source
    # File 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: 
11:       info "  Processing by #{payload[:controller]}##{payload[:action]} as #{payload[:formats].first.to_s.upcase}"
12:       info "  Parameters: #{params.inspect}" unless params.empty?
13:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.