1
0 Comments

What is a possible way to automatically restart a Windows application when it generates recurring error messages in its directory’s log file?

I examined various software programs such as Wintail and BearTail, but they can merely monitor the log file and are incapable of responding to error messages.

My goal is to accomplish the following: C:\examplesoftware\log.txt.

2019-11-08 21:20:43 ERROR Session Timeout to server
2019-11-08 21:20:43 ERROR Session Timeout to server
2019-11-08 21:20:43 ERROR Session Timeout to server

If the message “Session Timeout to server” appears for the third time, my intention is to exit the software and initiate its restart.

I appreciate any useful advice in advance.

Askify Moderator Edited question April 26, 2023