aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorsshaw <skye.shaw@gmail.com>2015-03-06 22:15:36 -0500
committersshaw <skye.shaw@gmail.com>2015-03-06 22:20:22 -0500
commitf9369c0f51e8c404dd12024037a055594bf0ace2 (patch)
tree9262099ef1dff89a2c2b61fc3efea4d7db308e9a /railties/lib/rails
parent387e7be458338db110f8a1ceeaf5952b39133a08 (diff)
downloadrails-f9369c0f51e8c404dd12024037a055594bf0ace2.tar.gz
rails-f9369c0f51e8c404dd12024037a055594bf0ace2.tar.bz2
rails-f9369c0f51e8c404dd12024037a055594bf0ace2.zip
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
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/rack/logger.rb3
1 files changed, 3 insertions, 0 deletions
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