-
Notifications
You must be signed in to change notification settings - Fork 4
Logging
Oleg Fetisov edited this page Sep 27, 2016
·
5 revisions
To help you debug your Judopay integration, you can attach a logger to the gem.
For example, to log debug messages to the file 'log.txt':
logger = Logger.new('log.txt')
logger.level = Logger::DEBUG
Judopay.configure do |config|
config.logger = logger
endIf you're using Rails, you use the built-in logger to write to your existing application log file:
Judopay.configure do |config|
config.logger = Rails.logger
end