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-1.0.3 lib/ably/models/nil_logger.rb
ably-1.0.2 lib/ably/models/nil_logger.rb
ably-1.0.1 lib/ably/models/nil_logger.rb
ably-rest-1.0.0 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-1.0.0 lib/ably/models/nil_logger.rb
ably-rest-0.8.15 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-0.8.15 lib/ably/models/nil_logger.rb
ably-rest-0.9.3 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-rest-0.9.2 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-rest-0.9.1 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-rest-0.9.0 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-rest-0.8.14 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-0.8.14 lib/ably/models/nil_logger.rb
ably-rest-0.8.13 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-0.8.13 lib/ably/models/nil_logger.rb
ably-0.8.12 lib/ably/models/nil_logger.rb
ably-0.8.11 lib/ably/models/nil_logger.rb
ably-0.8.10 lib/ably/models/nil_logger.rb
ably-rest-0.8.9 lib/submodules/ably-ruby/lib/ably/models/nil_logger.rb
ably-0.8.9 lib/ably/models/nil_logger.rb