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
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/nulllogger.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/nulllogger.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/nulllogger.rb
classiccms-0.7.5 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
classiccms-0.7.4 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
classiccms-0.7.3 vendor/bundle/gems/rack-1.4.1/lib/rack/nulllogger.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/nulllogger.rb
rack-1.4.7 lib/rack/nulllogger.rb
rack-1.5.5 lib/rack/nulllogger.rb
rack-1.4.6 lib/rack/nulllogger.rb
rack-1.5.4 lib/rack/nulllogger.rb
rack-1.5.3 lib/rack/nulllogger.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/nulllogger.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/nulllogger.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/nulllogger.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/nulllogger.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/nulllogger.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/nulllogger.rb
scout_realtime-1.0.5 lib/vendor/rack-1.5.2/lib/rack/nulllogger.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/nulllogger.rb