Sha256: 5c6009d6f778a87a4e5fe87aeed99fd3c3fc68a87faf4db81934b314b21f7b32

Contents?: true

Size: 232 Bytes

Versions: 31

Compression:

Stored size: 232 Bytes

Contents

module Routemaster
  class NullLogger
    def false
      false
    end

    def noop

    end

    [:debug, :info, :warn, :error, :fatal].each do |method|
      alias method :noop
      alias :"#{method}?" :false
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
routemaster-drain-3.0.0 lib/routemaster/null_logger.rb
routemaster-drain-2.5.4 lib/routemaster/null_logger.rb
routemaster-drain-2.5.3 lib/routemaster/null_logger.rb
routemaster-drain-2.5.2 lib/routemaster/null_logger.rb
routemaster-drain-2.5.1 lib/routemaster/null_logger.rb
routemaster-drain-2.5.0 lib/routemaster/null_logger.rb
routemaster-drain-2.4.4 lib/routemaster/null_logger.rb
routemaster-drain-2.4.3 lib/routemaster/null_logger.rb
routemaster-drain-2.4.2 lib/routemaster/null_logger.rb
routemaster-drain-2.4.1 lib/routemaster/null_logger.rb
routemaster-drain-2.4.0 lib/routemaster/null_logger.rb