Automatically send errors to admin

I want SuiteCRM to automatically send an email to the system administrators when an error is logged. Is there a way in SuiteCRM to do that? All I can think of is watching the log file for specific log levels (error, fatal) in linux, but I want to do it in the CRM.

Unfortunately every search engine fails finding anything on this topic since the forums are flooded with error messages like “Error Sending Email. Please contact your administrator for assistance.” which contain all the same keywords.

It could probably be done via CRM combining a custom scheduler job (Written in PHP) but still upon execution will check the log file and do some kinda grep like function to find what you’re looking for.

The best and simplest way forward would be following the trend on that one and making use of cron and a bash script that filters the log file, notes the errors and then emails them to the user.

In this case, simple is most probably best.