Skip to content
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
end

If 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

Clone this wiki locally