lib/ably/logger.rb in ably-1.2.0 vs lib/ably/logger.rb in ably-1.2.1

- old
+ new

@@ -5,13 +5,13 @@ # class Logger extend Forwardable # @param client [Ably::Rest::Client,Ably::Realtime::Client] Rest or Realtime Ably client - # @param log_level [Integer] {http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html Ruby Logger} log level + # @param log_level [Integer] {http://www.ruby-doc.org/stdlib-3.1.1/libdoc/logger/rdoc/Logger.html Ruby Logger} log level # @param custom_logger [nil,Object] A custom logger can optionally be used instead of the, - # however it must provide a {http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html Ruby Logger} compatible interface. + # however it must provide a {http://www.ruby-doc.org/stdlib-3.1.1/libdoc/logger/rdoc/Logger.html Ruby Logger} compatible interface. # def initialize(client, log_level, custom_logger = nil) @client = client @custom_logger = custom_logger @logger = custom_logger || default_logger @@ -22,18 +22,18 @@ @logger.level = log_level @log_mutex = Mutex.new end - # The logger used by this class, defaults to {http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html Ruby Logger} + # The logger used by this class, defaults to {http://www.ruby-doc.org/stdlib-3.1.1/libdoc/logger/rdoc/Logger.html Ruby Logger} # @return {Object,Logger} attr_reader :logger # If a custom logger is being used with this Logger, this property is not nil # @return {nil,Object} attr_reader :custom_logger - # The log level ranging from DEBUG to FATAL, refer to http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html + # The log level ranging from DEBUG to FATAL, refer to http://www.ruby-doc.org/stdlib-3.1.1/libdoc/logger/rdoc/Logger.html # @return {Integer} attr_reader :log_level # Catch exceptiosn in blocks passed to the logger, log the error and continue %w(fatal error warn info debug).each do |method_name|