Sha256: 3485a0d7a4ba88704ed332ccbd3de87d3adac45974575f8e4b0a87eda6ce9bd4
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
legion-logging-0.1.2 | lib/legion/logging/methods.rb |