lib/semantic.rb in josephwilk-rsemantic-0.1.0 vs lib/semantic.rb in josephwilk-rsemantic-0.1.1

- old
+ new

@@ -16,9 +16,13 @@ require 'stemmer' require 'logger' module Semantic + class << self + attr_writer :logger + end + def self.logger return @logger if @logger @logger = Logger.new(STDOUT) @logger.formatter = proc { |severity, time, progname, msg| "#{msg}\n" } @logger.level = Logger::ERROR