Email output and logging
Email output
In the CRON job list, click Send all Cron output to email. Enter the recipient in the Set Email dialog. This is an account-wide setting.
The Prevent Email control suppresses output for that job. Enable it only after a successful test, otherwise an error can be missed.
Write output to a log
php /home/USERNAME/domains/DOMAIN/public_html/path/script.php >> /home/USERNAME/logs/cron-example.log 2>&1>> appends output and 2>&1 includes errors. Review and rotate or remove the log so it cannot consume the account's disk space.
Suppress all output
php /home/USERNAME/domains/DOMAIN/public_html/path/script.php >/dev/null 2>&1Do not use this while diagnosing a problem. With curl, keep --fail --silent --show-error so an HTTP failure does not appear successful.
Never write passwords, API keys or personal data to logs or email output. A log outside public_html is not publicly served by the website.