Class: Sinatra::CommonLogger

### Home Classes Methods

### In Files

- lib/sinatra/base.rb

### Parent

Rack::CommonLogger

### Methods

- #call
- #call_without_check

### Files

- LICENSE

### Class/Module Index

Quicksearch

- Sinatra
- Sinatra::Application
- Sinatra::CommonLogger
- Sinatra::ExtendedRack
- Sinatra::Helpers
- Sinatra::Helpers::Stream
- Sinatra::Helpers::Stream::Application
- Sinatra::Helpers::Stream::Base
- Sinatra::Helpers::Stream::Templates
- Sinatra::Helpers::Stream::Templates::ContentTyped
- Sinatra::Helpers::Stream::Wrapper
- Sinatra::Request
- Sinatra::Request::AcceptEntry
- Sinatra::Response
- Sinatra::ShowExceptions
- Rack
- Rack::Builder

No matching classes.

# Sinatra::CommonLogger

Behaves exactly like Rack::CommonLogger with the notable exception that it does nothing, if another CommonLogger is already in the middleware chain.

### Public Instance Methods

call(env) click to toggle source

    # File lib/sinatra/base.rb, line 209
    def call(env)
      env['sinatra.commonlogger'] ? @app.call(env) : super
    end

Also aliased as: call_without_check
call_without_check(env) click to toggle source
Alias for: call

[Validate]

Generated with the Darkfish Rdoc Generator 2.