Class: Hoover::RackLogger
- Inherits:
-
Object
- Object
- Hoover::RackLogger
- Defined in:
- lib/hoover/rack_logger.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, logglier = nil) ⇒ RackLogger
constructor
A new instance of RackLogger.
Constructor Details
#initialize(app, logglier = nil) ⇒ RackLogger
Returns a new instance of RackLogger.
3 4 5 6 |
# File 'lib/hoover/rack_logger.rb', line 3 def initialize(app, logglier = nil) @logglier = logglier @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/hoover/rack_logger.rb', line 8 def call(env) before_dispatch(env) @app.call(env) ensure after_dispatch(env) end |