require 'logger' require 'time' module CcgLogger #LOGGER = Logger.new(File.join(File.dirname(__FILE__), '..', 'log/ccg.log')) LOGGER = Gom::Logger.new end module Ccg def self.logger out = nil if out.nil? @@logger ||= Gom::Logger.new else out = STDOUT if(out == '-') @@logger = (Gom::Logger.new out) end end end