123456789_123456789_123456789_123456789_123456789_

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
  • Object
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 258

def call(env)
  env['sinatra.commonlogger'] ? @app.call(env) : super
end