From: Thomas Leitner Date: 2005-04-09T04:33:59+09:00 Subject: [PATCH] logger.rb Fixed documentation and removed one useless line --- /usr/lib/ruby/1.8/logger.rb 2005-01-26 02:25:47.000000000 +0100 +++ logger.rb 2005-04-07 12:16:22.202620928 +0200 @@ -204,23 +204,23 @@ alias sev_threshold level alias sev_threshold= level= - # Returns +true+ iff the current severity level allows for the printing of + # Returns +true+ if the current severity level allows for the printing of # +DEBUG+ messages. def debug?; @level <= DEBUG; end - # Returns +true+ iff the current severity level allows for the printing of + # Returns +true+ if the current severity level allows for the printing of # +INFO+ messages. def info?; @level <= INFO; end - # Returns +true+ iff the current severity level allows for the printing of + # Returns +true+ if the current severity level allows for the printing of # +WARN+ messages. def warn?; @level <= WARN; end - # Returns +true+ iff the current severity level allows for the printing of + # Returns +true+ if the current severity level allows for the printing of # +ERROR+ messages. def error?; @level <= ERROR; end - # Returns +true+ iff the current severity level allows for the printing of + # Returns +true+ if the current severity level allows for the printing of # +FATAL+ messages. def fatal?; @level <= FATAL; end @@ -251,7 +251,6 @@ @progname = nil @level = DEBUG @datetime_format = nil - @logdev = nil if logdev @logdev = LogDevice.new(logdev, :shift_age => shift_age, :shift_size => shift_size) end -- |\ Thomas Leitner -- thomas [underscore] leitner [at] gmx [dot] at |> |/ "Life is what happens to you while you're busy making other plans"