Detecting Errors

Is there a way to detect errors that are reported in an error log? I would like to build automations when certain errors are present.