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
rack-1.3.5 lib/rack/nulllogger.rb
rack-1.3.4 lib/rack/nulllogger.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/rack-1.1.2/lib/rack/nulllogger.rb
rack-1.2.4 lib/rack/nulllogger.rb
rack-1.3.3 lib/rack/nulllogger.rb
rack-1.3.2 lib/rack/nulllogger.rb
rack-1.3.1 lib/rack/nulllogger.rb
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/rack-1.3.0/lib/rack/nulllogger.rb
rack-1.2.3 lib/rack/nulllogger.rb
rack-1.3.0 lib/rack/nulllogger.rb
rack-1.3.0.beta2 lib/rack/nulllogger.rb
rack-1.3.0.beta lib/rack/nulllogger.rb
rack-1.2.2 lib/rack/nulllogger.rb
rack-1.1.2 lib/rack/nulllogger.rb
rack-1.1.1 lib/rack/nulllogger.rb
rack-1.1.1.pre lib/rack/nulllogger.rb
edgar-rack-1.2.1 lib/rack/nulllogger.rb
eac-rack-1.1.1 lib/rack/nulllogger.rb
rack-1.2.1 lib/rack/nulllogger.rb
rack-1.2.0 lib/rack/nulllogger.rb