Get logs to send notifications to my phone

Is their a way or can their be a way to trigger an automation or some kind of notificatio. From an error log and ideally the message?

Yes there are topics about this. Search the forum.

It has the potential to crash your Home Assistant server if the automation generates errors though. As the errors will be logged which will trigger the automation which will generates errors, which will be logged, which will trigger the automation, which will etc…