Class: Sinatra::CommonLogger
- Inherits:
-
Rack::CommonLogger
- Object
- Rack::CommonLogger
- Sinatra::CommonLogger
- Defined in:
- lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb
Overview
Behaves exactly like Rack::CommonLogger with the notable exception that it does nothing, if another CommonLogger is already in the middleware chain.
Constant Summary
Constants inherited from Rack::CommonLogger
Instance Method Summary collapse
Methods inherited from Rack::CommonLogger
Constructor Details
This class inherits a constructor from Rack::CommonLogger
Instance Method Details
#call(env) ⇒ Object
209 210 211 |
# File 'lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb', line 209 def call(env) env['sinatra.commonlogger'] ? @app.call(env) : super end |