Topic: How to check errors/puts statements from ruby files which are under cr

Hi firends,
I have written Ruby program ro send emails.I kept that ruby file in cron job.
but i dont know how to check errrors or comments in program while running .
Can anybody help me how to chekc errors in my code if that is in cronjob.Am using whenever plugin for running cronjob