Sha256: 53c5270391b669a96e830642e4f26c9cdcc6258e2855337e7358898e1885e3b2

Contents?: true

Size: 279 Bytes

Versions: 11

Compression:

Stored size: 279 Bytes

Contents

module Spree
  class MollieLogger
    def self.debug(message = nil)
      return unless message.present?

      @logger ||= Logger.new(File.join(Rails.root, 'log', 'mollie.log'))
      @logger.debug(message)
    end

    class << self
      attr_writer :logger
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_mollie_gateway-4.0.1 app/models/spree/mollie_logger.rb
spree_mollie_gateway-4.0.0 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.2.1 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.2.0 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.1.0 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.0.4 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.0.3 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.0.2 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.0.1 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.0.0 app/models/spree/mollie_logger.rb
spree_mollie_gateway-3.0.0.pre.beta app/models/spree/mollie_logger.rb