snakefoot / snaketail-net

Tail utility for monitoring text log files and Windows EventLog
http://snakenest.com/snaketail/
GNU General Public License v3.0
395 stars 79 forks source link

Log files get stale #150

Closed levmin closed 6 months ago

levmin commented 3 years ago

I have 2 Windows machines, an always-on Server and a Workstation that gets suspended overnight. The Server runs some software that generates log files, also residing on the server. The Workstation runs Snaketail that monitors them. After I resume the workstation, the Shaketail does not show changes in log files that happened overnight. Closing the program and reopening the same session does not help, but if I close the session and drag-and-drop the log files onto Snaketail, the appear properly. Thank you.

snakefoot commented 3 years ago

SnakeTail tries to perform explicit refresh of the log-file folder avoid the issue with stale network-directories:

https://github.com/snakefoot/snaketail-net/blob/1980e51f0413d7590537a39a1715a43de2961d83/SnakeTail/LogFileStream.cs#L69-L73

https://github.com/snakefoot/snaketail-net/blob/1980e51f0413d7590537a39a1715a43de2961d83/SnakeTail/LogFileStream.cs#L145-L153

If you know of way to improve this, then please create a pull-request.

snakefoot commented 6 months ago

Closing due to inactivity. Pull-requests are ofcourse wellcome