lib/muffin_man.rb in muffin_man-2.1.0 vs lib/muffin_man.rb in muffin_man-2.1.3

- old
+ new

@@ -19,10 +19,11 @@ require "muffin_man/fba_inventory/v1" require "muffin_man/request_helpers" require "muffin_man/feeds/v20210630" require "muffin_man/notifications/v1" require "muffin_man/merchant_fulfillment/v0" +require "muffin_man/awd/v20240509" module MuffinMan class Error < StandardError; end class SpApiAuthError < StandardError @@ -33,17 +34,21 @@ @auth_response = auth_response end end class << self - attr_accessor :configuration + attr_accessor :configuration, :logger end def self.configure self.configuration ||= Configuration.new yield(configuration) + self.logger = configuration.logger if configuration.logger end class Configuration - attr_accessor :save_access_token, :get_access_token + attr_accessor :save_access_token, :get_access_token, :logger end end + +# Set default logger +MuffinMan.logger = Logger.new($stdout)