Class: Sinatra::CommonLogger
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Rack::CommonLogger
|
|
Instance Chain:
self,
Rack::CommonLogger
|
|
Inherits: |
Rack::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
Instance Method Details
#call(env)
[ GitHub ]# File 'lib/sinatra/base.rb', line 261
def call(env) env['sinatra.commonlogger'] ? @app.call(env) : super end