Sha256: d207099834db53386e94a7f01a319b92ea07e3f6fc8e43ca4566ba5c002d3a42
Contents?: true
Size: 532 Bytes
Versions: 5
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module BingAdsRubySdk class Configuration attr_accessor :pretty_print_xml, :filters, :log, :instrumentor attr_writer :logger def initialize @log = false @pretty_print_xml = false @filters = [] @instrumentor = nil 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
5 entries across 5 versions & 1 rubygems