Class: Sinatra::CommonLogger
- Inherits:
-
Rack::CommonLogger
- Object
- Rack::CommonLogger
- Sinatra::CommonLogger
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-3.0.5/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
253 254 255 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-3.0.5/lib/sinatra/base.rb', line 253 def call(env) env['sinatra.commonlogger'] ? @app.call(env) : super end |