in reply to Running an application and capturing output

You don't specify what the failure is, but it looks from your commented out line that you are not actually passing any data to $log->info. Try:
# rest of code $log->info($_); # rest of code