Sha256: 7e4ff76db9db9a69ea1cc31880db631fb50508d624234c955dc4e55796219810

Contents?: true

Size: 702 Bytes

Versions: 3

Compression:

Stored size: 702 Bytes

Contents

$:.unshift(File.dirname(__FILE__)) unless
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

require 'yaml'
require 'logger'
require 'lucid/platform'
require 'lucid/runtime'
require 'lucid/cli/app'
require 'lucid/step_definitions'
require 'lucid/term/ansicolor'

module Lucid
  class << self
    attr_accessor :wants_to_quit

    def logger
      return @log if @log
      @log = Logger.new(STDOUT)
      @log.level = Logger::INFO
      @log
    end

    def logger=(logger)
      @log = logger
    end
  end

  class LogFormatter < ::Logger::Formatter
    def call(severity, time, progname, msg)
      "\n[ LUCID (#{severity}) ] #{msg}"
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lucid-0.3.3 lib/lucid.rb
lucid-0.3.0 lib/lucid.rb
lucid-0.2.1 lib/lucid.rb