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.2.7 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.2.7 lib/ably/models/nil_logger.rb
ably-rest-1.2.6 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.2.6 lib/ably/models/nil_logger.rb
ably-rest-1.2.4 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.2.4 lib/ably/models/nil_logger.rb
ably-rest-1.2.3 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.2.3 lib/ably/models/nil_logger.rb
ably-rest-1.2.2 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.2.2 lib/ably/models/nil_logger.rb
ably-rest-1.2.1 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.2.1 lib/ably/models/nil_logger.rb
ably-rest-1.2.0 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.2.0 lib/ably/models/nil_logger.rb
ably-rest-1.1.8 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.8 lib/ably/models/nil_logger.rb
ably-rest-1.1.7 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.7 lib/ably/models/nil_logger.rb
ably-rest-1.1.6 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.1.6 lib/ably/models/nil_logger.rb