class GmoPayment::Logger

Public Class Methods

write(msg) click to toggle source
# File lib/gmo_payment/logger.rb, line 4
def write(msg)
  log_path = GmoPayment::Configurations.all.fetch(:log_path)
  File.open(log_path, 'a+') do |f|
    f.write("#{Time.now} :: #{msg} \n")
  end
end