Do you mean you want to capture errors or warnings? I had a python script parsing log files and updating one string item through rest api. Then a rule to send that string with telegram to my phone. Found it somewhere in this forum. Tried to search it but no luck.
I also started to develop a log parsing bindig. Have to see if I have it somewhere saved.
Edit
Found the topic: Skript to read openhab logs