Sha256: 0fbf1618ff16db014fd6a6a4ed2d70aa9b1fc251e47be71366be48345854a53a

Contents?: true

Size: 980 Bytes

Versions: 71

Compression:

Stored size: 980 Bytes

Contents

# frozen_string_literal: true

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
    def unknown(progname = nil, &block); end
    def info? ;  end
    def debug? ; end
    def warn? ;  end
    def error? ; end
    def fatal? ; end
    def level ; end
    def progname ; end
    def datetime_format ; end
    def formatter ; end
    def sev_threshold ; end
    def level=(level); end
    def progname=(progname); end
    def datetime_format=(datetime_format); end
    def formatter=(formatter); end
    def sev_threshold=(sev_threshold); end
    def close ; end
    def add(severity, message = nil, progname = nil, &block); end
    def <<(msg); end
  end
end

Version data entries

71 entries across 56 versions & 14 rubygems

Version Path
rack-2.2.10 lib/rack/null_logger.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/null_logger.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/rack-2.2.7/lib/rack/null_logger.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/rack-2.2.7/lib/rack/null_logger.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/rack-2.2.7/lib/rack/null_logger.rb
rack-2.2.9 lib/rack/null_logger.rb
rack-2.2.8.1 lib/rack/null_logger.rb
rack-2.1.4.4 lib/rack/null_logger.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rack-2.2.3/lib/rack/null_logger.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rack-2.2.7/lib/rack/null_logger.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/null_logger.rb
rack-2.2.8 lib/rack/null_logger.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/null_logger.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rack-2.2.7/lib/rack/null_logger.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rack-2.2.3/lib/rack/null_logger.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/lib/rack/null_logger.rb
rack-2.2.7 lib/rack/null_logger.rb
rack-2.2.6.4 lib/rack/null_logger.rb
rack-2.2.6.3 lib/rack/null_logger.rb
rack-2.1.4.3 lib/rack/null_logger.rb