# File lib/common.rb, line 160 def log(lvl, str) case lvl when :DEBUG _log("DEBUG".magenta(), str) if ENV["DEBUG"].to_s() != "" when :DEBUG_TRAVIS _log("DEBUG_TRAVIS".magenta(), str) if ENV["DEBUG_TRAVIS"].to_s() != "" when :VERBOSE _log("INFO".blue(), str) if @@verbose_log == true when :INFO _log("INFO".green(), str) when :WARNING _log("WARNING".brown(), str) when :ERROR _log("ERROR".red(), str, STDERR) else _log(lvl, str) end end