Sha256: cdca30d3cb36c1d7aa372c919162b21125093f4684ff3c504672a73799a24ef2

Contents?: true

Size: 246 Bytes

Versions: 1

Compression:

Stored size: 246 Bytes

Contents

module Headsail
  STDOUT.sync = true

  def self.log
    @logger ||= Logger.new(STDOUT)
  end

  def self.info(msg)
    log.info("[ \e[32m#{'OK'}\e[0m ] #{msg}")
  end

  def self.err(msg)
    log.info("[ \e[31m#{'ERR'}\e[0m ] #{msg}")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
headsail-0.1.13 lib/headsail/logs.rb