lib/wcc/contentful/configuration.rb in wcc-contentful-1.2.1 vs lib/wcc/contentful/configuration.rb in wcc-contentful-1.3.0

- old
+ new

@@ -8,10 +8,11 @@ connection connection_options default_locale environment instrumentation_adapter + logger management_token preview_token schema_file space store @@ -179,9 +180,14 @@ # Overrides the use of ActiveSupport::Notifications throughout this library to # emit instrumentation events. The object or module provided here must respond # to :instrument like ActiveSupport::Notifications.instrument attr_accessor :instrumentation_adapter + + # Sets the logger to be used by the wcc-contentful gem, including stores. + # Defaults to the rails logger if in a rails context, otherwise creates a new + # logger that writes to STDERR. + attr_accessor :logger def initialize @access_token = ENV.fetch('CONTENTFUL_ACCESS_TOKEN', nil) @app_url = ENV.fetch('APP_URL', nil) @connection_options = {