Class: Sinatra::CommonLogger
- Inherits:
-
Rack::CommonLogger
- Object
- Rack::CommonLogger
- Sinatra::CommonLogger
- Defined in:
- 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.
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
254 255 256 |
# File 'lib/sinatra/base.rb', line 254 def call(env) env['sinatra.commonlogger'] ? @app.call(env) : super end |