I have a cron job that is running every hour, and providing output (over stdout) similar to the following:
Found 1 batch jobs
{'job': 'update'}
Job 1 started at 2013-06-07 13:00:03.673683+00:00
Waiting for 1 batch jobs to complete
Job 1 completed at 2013-06-07 13:57:56+01:00
Now, this is all handy info, but I don't particularly want it emailed to me every hour. The app is set up to print the above info to stdout, and any warnings or errors to stderr. Is it possible to log the above to a file (ie. /var/log somewhere), but email me any text that comes through over stderr?