Class: SmartLogger::RackLoggerMarker
- Inherits:
-
Object
- Object
- SmartLogger::RackLoggerMarker
- Defined in:
- lib/smart_logger/rack.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ RackLoggerMarker
constructor
A new instance of RackLoggerMarker.
Constructor Details
#initialize(app) ⇒ RackLoggerMarker
Returns a new instance of RackLoggerMarker.
4 5 6 |
# File 'lib/smart_logger/rack.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 |
# File 'lib/smart_logger/rack.rb', line 8 def call(env) SmartLogger.start "Rack" @app.call(env) SmartLogger.end end |