-
Notifications
You must be signed in to change notification settings - Fork 13
Retrieve Task Log
treeder edited this page Mar 26, 2012
·
1 revision
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.
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)
You can access logs through the Iron.io HUD (UI). Find the job then click the Log link to view it.