lib/gogetit/multilogger.rb in gogetit-0.12.3 vs lib/gogetit/multilogger.rb in gogetit-0.12.4

- old
+ new

@@ -43,10 +43,14 @@ @loggers.each { |logger| logger.add(level, args) } end Logger::Severity.constants.each do |level| define_method(level.downcase) do |*args| - @loggers.each { |logger| logger.send(level.downcase, args) } + if level == :ERROR + @loggers.each { |logger| logger.send(level.downcase, "\e[31m#{args}\e[0m") } + else + @loggers.each { |logger| logger.send(level.downcase, "\e[36m#{args}\e[0m") } + end end define_method("#{ level.downcase }?".to_sym) do @level <= Logger::Severity.const_get(level) end