require 'singleton'
require 'httpi'
require 'nokogiri'
require 'json'

require "rbraspag/version"
require 'rbraspag/connection'
require 'rbraspag/payment_method'
require 'rbraspag/crypto/jar_webservice'
require 'rbraspag/crypto/webservice'
require 'rbraspag/bill'
require 'rbraspag/credit_card'
require 'rbraspag/eft'
require 'rbraspag/errors'
require 'rbraspag/utils'
require 'rbraspag/order'

module Braspag
  def self.logger=(logger)
    HTTPI.log = true
    HTTPI.logger = logger
    HTTPI.log_level = :debug
  end

  def self.config_file_path=(path)
    @config_path = path
  end

  def self.config_file_path
    @config_path || 'config/braspag.yml'
  end
end

require 'singleton'
require 'httpi'
require 'nokogiri'
require 'json'

require "rbraspag/version"
require 'rbraspag/connection'
require 'rbraspag/payment_method'
require 'rbraspag/crypto/jar_webservice'
require 'rbraspag/crypto/webservice'
require 'rbraspag/bill'
require 'rbraspag/credit_card'
require 'rbraspag/eft'
require 'rbraspag/errors'
require 'rbraspag/utils'
require 'rbraspag/order'

module Braspag
  def self.config_file_path=(path)
    @config_path = path
  end

  def self.config_file_path
    @config_path || 'config/braspag.yml'
  end
end

Revert "Forcing logger enabling from outside to HTTPI"
Revert "Forcing logger enabling from outside to HTTPI"

This reverts commit 3035c99cb09764fc02052c7e418a8229b867734f.
