From f9369c0f51e8c404dd12024037a055594bf0ace2 Mon Sep 17 00:00:00 2001
From: sshaw <skye.shaw@gmail.com>
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')

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 <tt>request</tt> object responds to, a Proc
+    # that accepts an instance of the <tt>request</tt> object, or something that responds to <tt>to_s</tt>.
     class Logger < ActiveSupport::LogSubscriber
       def initialize(app, taggers = nil)
         @app          = app
-- 
cgit v1.2.3


From c744af7cd3fd41f97c0b732aaf9fe3ac2bb28469 Mon Sep 17 00:00:00 2001
From: Skye Shaw <skye.shaw@gmail.com>
Date: Fri, 24 Apr 2015 13:00:56 -0400
Subject: Refer to the constructer argument in docs

---
 railties/lib/rails/rack/logger.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'railties')

diff --git a/railties/lib/rails/rack/logger.rb b/railties/lib/rails/rack/logger.rb
index 5103c1e2ca..7aaa353b91 100644
--- a/railties/lib/rails/rack/logger.rb
+++ b/railties/lib/rails/rack/logger.rb
@@ -8,7 +8,7 @@ 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 <tt>request</tt> object responds to, a Proc
+    # Log tags (+taggers+) can be an Array containing: methods that the <tt>request</tt> object responds to, a Proc
     # that accepts an instance of the <tt>request</tt> object, or something that responds to <tt>to_s</tt>.
     class Logger < ActiveSupport::LogSubscriber
       def initialize(app, taggers = nil)
-- 
cgit v1.2.3