With this simple command, you can download the MTA deployment logs of your recent deployment. Instead of manually having to use
cf dmol -i <operation id>, just save the command (replace appId with your Id) as a shell script, make it executable (chmod +x) and run the script after your deployment. It stores the recent logs into the folder logs.
dmol is short for
cf download-mta-op-logs --mta <appId> --last 1 -d logs
To just have a quick look at the recent logs, use
cf logs <appId>-srv --recent