Recorded errors are what ? DB errors/OS errors ?
If system errors check for the return codes, database/sql errors check for possible failure errors. Use sed/awk and find the strings in the log that says the task is successfull or not.