lib/quilt_rails/logger.rb in quilt_rails-3.4.0 vs lib/quilt_rails/logger.rb in quilt_rails-3.4.1

- old
+ new

@@ -1,13 +1,16 @@ # frozen_string_literal: true module Quilt module Logger def self.log(string) - if Rails.logger.nil? - puts string - else - Rails.logger.info(string) - end + ActiveSupport::Deprecation.warn(<<~MSG.squish) + Quilt::Logger.log is deprecated. Please use Quilt.logger instead. + MSG + Quilt.configuration.logger.info(string) end + end + + class << self + delegate(:logger, to: :configuration) end end