How to alert admins if there is an error in a custom plugin?

We use those here. Essentially you get a small, dismissable blue bar along the top of the site that says something like “xyz in last hour exceeds site setting limit of xxx/hour”. The bar links to /logs.

Edit: Here’s a screenshot
image