aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-04-24 22:10:46 +0200
committerYves Senn <yves.senn@gmail.com>2015-04-24 22:10:46 +0200
commitdc6984448be422146f057ef3e8284839ea6748c3 (patch)
treeaacb9d883133f358d140bd3d2d39c888d438c511 /railties
parentab10f6ef223e2ce02ce60cfc44e865cf9ecf7990 (diff)
parentc744af7cd3fd41f97c0b732aaf9fe3ac2bb28469 (diff)
downloadrails-dc6984448be422146f057ef3e8284839ea6748c3.tar.gz
rails-dc6984448be422146f057ef3e8284839ea6748c3.tar.bz2
rails-dc6984448be422146f057ef3e8284839ea6748c3.zip
Merge pull request #19236 from sshaw/more_tagged_logging_docs
More docs on tagged logging [ci skip]
Diffstat (limited to 'railties')
-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..7aaa353b91 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 (+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)
@app = app