Sha256: e27ae76b8bdd613d0550152e9f3dd47a2cf47b147cef1feec61878ea6de7a114

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

require 'logger'
require 'singleton'

module RCoLi
  
  class ApplicationContext
    
    include Singleton
    
    attr_accessor :debug
    
  end
  
end

@log = Logger.new(STDOUT)
@log.level = Logger::INFO
@log.formatter = proc do |severity, datetime, progname, msg|
  "#{msg}\n"
end

def log
  @log
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rcoli-0.5.6 lib/rcoli/utils.rb
rcoli-0.5.5 lib/rcoli/utils.rb