Without a redirect, cron mails the output of every job, or drops it when no mail system is installed.
*/10 * * * * /usr/local/bin/sync.sh >> /var/log/sync.log 2>&1
Redirect standard output to the file first, then point standard error at standard output. The order matters: 2>&1 >> file sends errors to the old standard output instead of the file. >> appends, while > empties the log at the start of every run. The user the job runs as must be allowed to write to the log path, so a file under the home directory is easier than one in /var/log. Add a logrotate entry or the file grows without limit.
Further reading: crontab(5) manual page
Going deeper: Guide: find out why a Linux service failed, with journalctl