Class: SmartLogger::RackLoggerMarker

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_logger/rack.rb

Instance Method Summary collapse

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