From f9369c0f51e8c404dd12024037a055594bf0ace2 Mon Sep 17 00:00:00 2001 From: sshaw Date: Fri, 6 Mar 2015 22:15:36 -0500 Subject: More docs on tagged logging [ci skip] Mention that tags can also come from a Proc that accepts the request object or something's to_s method --- railties/lib/rails/rack/logger.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/rack/logger.rb b/railties/lib/rails/rack/logger.rb index 9962e6d943..5103c1e2ca 100644 --- a/railties/lib/rails/rack/logger.rb +++ b/railties/lib/rails/rack/logger.rb @@ -7,6 +7,9 @@ require 'rack/body_proxy' module Rails module Rack # Sets log tags, logs the request, calls the app, and flushes the logs. + # + # Log tags can be an Array containing: methods that the request object responds to, a Proc + # that accepts an instance of the request object, or something that responds to to_s. class Logger < ActiveSupport::LogSubscriber def initialize(app, taggers = nil) @app = app -- cgit v1.2.3