ActiveSupport::LogSubscriber
# File lib/action_controller/log_subscriber.rb, line 50 50: def logger 51: ActionController::Base.logger 52: end
# 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
# File lib/action_controller/log_subscriber.rb, line 31 31: def redirect_to(event) 32: info "Redirected to #{event.payload[:location]}" 33: end
# 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
# 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
# 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.
Generated with the Darkfish Rdoc Generator 1.1.6.