Sha256: 002d49c852ba3464b602cb577d95362cb808d2d26209bbddc13ef5555a6f13b5

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

module Rbfs
  class Logger
    attr_reader :config

    def initialize(config)
      @config = config
    end

    def info(msg)
      puts "\033[0;32m#{msg}"
    end

    def error(msg)
      puts "\033[0;31m#{msg}"
    end

    def critical(msg)
      puts "\033[0;31m#{msg}"
      exit 1
    end

    def notice(msg)
      puts "\033[0;33m#{msg}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbfs-0.0.5 lib/rbfs/logger.rb