Skip to content
treeder edited this page Mar 26, 2012 · 1 revision

Logging Data

Everything you output to STDOUT and STDERR will be available on IronWorker for debugging your code. For instance:

puts "Starting to do something..."
puts "User: " + user.inspect

The log will be available for viewing via the Iron.io HUD.

Getting Log Data

The log can be obtained by using the get_log method.

worker.get_log

It can also be accessed via the API by calling the class with the task_id.

IronWorker.service.log(task_id)

Getting Log Data Within the HUD

You can access logs through the Iron.io HUD (UI). Find the job then click the Log link to view it.

Clone this wiki locally