Logging

James Goodwin edited this page Mar 24, 2017 · 6 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 using Ruby on Rails, the built-in logger can write to your existing application log file:

Judopay.configure do |config|
	config.logger = Rails.logger
end
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.