lib/logging/logger.rb in logging-1.6.1 vs lib/logging/logger.rb in logging-1.6.2

- old
+ new

@@ -207,11 +207,11 @@ # message. # # This method returns +true+ if the message was logged, and +false+ is # returned if the message was not logged. # - def add( lvl, data = nil ) + def add( lvl, data = nil, progname = nil ) lvl = Integer(lvl) return false if lvl < level data = yield if block_given? log_event(::Logging::LogEvent.new(@name, lvl, data, @trace)) @@ -278,10 +278,10 @@ # log.level = "INFO" # log.level = 4 # log.level = 'off' # log.level = :all # - # These prodcue an +ArgumentError+ + # These produce an +ArgumentError+ # # log.level = Object # log.level = -1 # log.level = 1_000_000_000_000 #