Sha256: 3d79e4d1d8b8355a344b244f742a9d3f528b4f2db46788ad840b70bfbeb8badb
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
require 'foodtaster/config' require 'foodtaster/rspec' require 'logger' module Foodtaster autoload :Client, 'foodtaster/client' autoload :ServerProcess, 'foodtaster/server_process' autoload :Vm, 'foodtaster/vm' autoload :RSpecRun, 'foodtaster/rspec_run' class << self def logger @logger ||= Logger.new(STDOUT).tap do |log| log_level = ENV['FT_LOGLEVEL'] || self.config.log_level.to_s.upcase log.level = Logger.const_get(log_level) log.formatter = proc do |severity, datetime, progname, msg| "[FT #{severity}]: #{msg}\n" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
foodtaster-0.0.8 | lib/foodtaster.rb |
foodtaster-0.0.7 | lib/foodtaster.rb |
foodtaster-0.0.6 | lib/foodtaster.rb |
foodtaster-0.0.4 | lib/foodtaster.rb |
foodtaster-0.0.3 | lib/foodtaster.rb |