Sha256: 58a54788356f15b2a4328741405790f12338e5f09473328fc800adf188fe8dc6

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tg-can-controls-gateway-0.1.3 lib/ccg_logger.rb