Please point to the existing answer I couldn't find.
I have subdirectories with a lot of active *.log files that being modified by several python scripts. What I'm trying to achieve is to catch the moment when a log entry about python exception appears in one of the log files (let's say when the row "Traceback (most recent call last):" is being written) and then get/read the full exception message.
Traceback (most recent call last):
File "test.py", line 236, in main
if response == None:
AttributeError: 'NoneType' object has no attribute 'status_code'
Here is an example part that I want to monitor and catch.