Sha256: 9c086296aab5f3b43602a24ec05360f0011d7d13556be8883175af74a3833198

Contents?: true

Size: 386 Bytes

Versions: 246

Compression:

Stored size: 386 Bytes

Contents

module Rack
  class NullLogger
    def initialize(app)
      @app = app
    end

    def call(env)
      env['rack.logger'] = self
      @app.call(env)
    end

    def info(progname = nil, &block);  end
    def debug(progname = nil, &block); end
    def warn(progname = nil, &block);  end
    def error(progname = nil, &block); end
    def fatal(progname = nil, &block); end
  end
end

Version data entries

246 entries across 213 versions & 40 rubygems

Version Path
classiccms-0.3.1 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
classiccms-0.3.0 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/nulllogger.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/nulllogger.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/nulllogger.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb
classiccms-0.2.4.pre vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
challah-0.6.0 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
challah-0.5.4 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb
classicCMS-0.2.3 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
classicCMS-0.2.2 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
classicCMS-0.2.1 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
classicCMS-0.2.0 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
classicCMS-0.1.2 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb