lib/ccg_logger.rb in tg-can-controls-gateway-0.1.2 vs lib/ccg_logger.rb in tg-can-controls-gateway-0.1.3

- old
+ new

@@ -3,5 +3,16 @@ 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