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.7.1 lib/routemaster/null_logger.rb
routemaster-drain-3.7.0 lib/routemaster/null_logger.rb
routemaster-drain-3.6.8 lib/routemaster/null_logger.rb
routemaster-drain-3.6.7 lib/routemaster/null_logger.rb
routemaster-drain-3.6.6 lib/routemaster/null_logger.rb
routemaster-drain-3.6.5 lib/routemaster/null_logger.rb
routemaster-drain-3.6.4 lib/routemaster/null_logger.rb
routemaster-drain-3.6.3 lib/routemaster/null_logger.rb
routemaster-drain-3.6.2 lib/routemaster/null_logger.rb
routemaster-drain-3.6.1 lib/routemaster/null_logger.rb
routemaster-drain-3.6.0 lib/routemaster/null_logger.rb
routemaster-drain-3.5.1 lib/routemaster/null_logger.rb
routemaster-drain-3.5.0 lib/routemaster/null_logger.rb
routemaster-drain-3.4.0 lib/routemaster/null_logger.rb
routemaster-drain-3.3.0 lib/routemaster/null_logger.rb
routemaster-drain-3.2.0 lib/routemaster/null_logger.rb
routemaster-drain-3.1.0 lib/routemaster/null_logger.rb
routemaster-drain-3.0.3 lib/routemaster/null_logger.rb
routemaster-drain-3.0.2 lib/routemaster/null_logger.rb
routemaster-drain-3.0.1 lib/routemaster/null_logger.rb