lib/bovem/logger.rb in bovem-2.1.3 vs lib/bovem/logger.rb in bovem-2.2.0

- old
+ new

@@ -48,11 +48,11 @@ rv.level = level.to_i rv.formatter = formatter || self.default_formatter rv end - # Translates a file to standard input or standard ouput in some special cases. + # Translates a file to standard input or standard output in some special cases. # # @param file [String] The string to translate. # @return [String|IO] The translated file name. def self.get_real_file(file) case file @@ -69,10 +69,10 @@ end # The default formatter for logging. # @return [Proc] The default formatter for logging. def self.default_formatter - @default_formatter ||= ::Proc.new {|severity, datetime, progname, msg| + @default_formatter ||= ::Proc.new {|severity, datetime, _, msg| color = case severity when "DEBUG" then :cyan when "INFO" then :green when "WARN" then :yellow when "ERROR" then :red \ No newline at end of file