Class: Rails::Rack::Logger
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- Rails::Rack::Logger
- Defined in:
- lib/rails/rack/logger.rb
Overview
Log the request started and flush all loggers after it.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
Instance Method Details
#call(env) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/rails/rack/logger.rb', line 11 def call(env) before_dispatch(env) @app.call(env) ensure after_dispatch(env) end |