Sha256: a1a054072d02cc3e506380fc9835df40f747c2dee78081c4365240ef4a31b63f

Contents?: true

Size: 491 Bytes

Versions: 3

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

module BingAdsRubySdk
  class Configuration
    attr_accessor :pretty_print_xml, :filters, :log
    attr_writer :logger

    def initialize
      @log = false
      @pretty_print_xml = false
      @filters = []
    end

    def logger
      @logger ||= default_logger
    end

    private

    def default_logger
      Logger.new(File.join(BingAdsRubySdk::ROOT_PATH, "log", "bing-sdk.log")).tap do |l|
        l.level = Logger::INFO
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bing_ads_ruby_sdk-1.2.0 lib/bing_ads_ruby_sdk/configuration.rb
bing_ads_ruby_sdk-1.1.1 lib/bing_ads_ruby_sdk/configuration.rb
bing_ads_ruby_sdk-1.0.0 lib/bing_ads_ruby_sdk/configuration.rb