Set up logging for cron tasks.