module Legion module Logging module Methods def debug(message, log = @log) message = Rainbow(message).blue if @color log.debug(message) end def info(message, log = @log) message = Rainbow(message).green if @color log.info(message) end def warn(message, log = @log) message = Rainbow(message).yellow if @color log.warn(message) end def error(message, log = @log) message = Rainbow(message).red if @color log.error(message) end def fatal(message, log = @log) message = Rainbow(message).darkred if @color log.fatal(message) end def unknown(message, log = @log) message = Rainbow(message).purple if @color log.unknown(message) end end end end