Sha256: 469d5fe4945c0a62945b3e4f7cad0ce41e0401a845ae7f312b4067e42c841e2d

Contents?: true

Size: 337 Bytes

Versions: 6

Compression:

Stored size: 337 Bytes

Contents

require 'buffered_logger'

module Quickbooks::Logger
  def log
    Quickbooks::Log.log
  end
end

class Quickbooks::Log
  private_class_method :new
  LOG_LEVEL = 6

  def self.init(log_level)
    @log = BufferedLogger.new(STDOUT, log_level || LOG_LEVEL)
  end

  def self.log
    @log ||= BufferedLogger.new(STDOUT, LOG_LEVEL)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
quickbooks_api-0.1.7 lib/quickbooks/logger.rb
quickbooks_api-0.1.6 lib/quickbooks/logger.rb
quickbooks_api-0.1.5 lib/quickbooks/logger.rb
quickbooks_api-0.1.4 lib/quickbooks/logger.rb
quickbooks_api-0.1.3 lib/quickbooks/logger.rb
quickbooks_api-0.1.2 lib/quickbooks/logger.rb