Sha256: f346c350d9c85e5eaa90d45e91f21e90260c50d8a2b07a7e10d96006ceb6e78d

Contents?: true

Size: 406 Bytes

Versions: 82

Compression:

Stored size: 406 Bytes

Contents

module Ably::Models
  # When Log Level set to none, this NilLogger is used to silence all logging
  # NilLogger provides a Ruby Logger compatible interface
  class NilLogger
    def null_method(*args)
    end

    def level
      :none
    end

    def level=(value)
      level
    end

    [:fatal, :error, :warn, :info, :debug].each do |method|
      alias_method method, :null_method
    end
  end
end

Version data entries

82 entries across 82 versions & 2 rubygems

Version Path
ably-rest-1.1.5 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.5 lib/ably/models/nil_logger.rb
ably-rest-1.1.4 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.4 lib/ably/models/nil_logger.rb
ably-rest-1.1.4.rc lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.4.rc lib/ably/models/nil_logger.rb
ably-rest-1.1.3 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.3 lib/ably/models/nil_logger.rb
ably-rest-1.1.2 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.2 lib/ably/models/nil_logger.rb
ably-rest-1.1.2.rc1 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.1 lib/ably/models/nil_logger.rb
ably-rest-1.1.0 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.0 lib/ably/models/nil_logger.rb
ably-1.0.7 lib/ably/models/nil_logger.rb
ably-rest-1.0.6 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.0.6 lib/ably/models/nil_logger.rb
ably-rest-1.0.5 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.0.5 lib/ably/models/nil_logger.rb
ably-1.0.4 lib/ably/models/nil_logger.rb