Skip to content

Instantly share code, notes, and snippets.

View mikedavies-dev's full-sized avatar

Mike Davies mikedavies-dev

View GitHub Profile
@mikedavies-dev
mikedavies-dev / gist:989dd86a1ace38a9ac58
Created May 27, 2015 09:40
A simple log file monitor class for .NET
/*
A simple log file monitor class for .NET
Uses a threaded timer to check for changes in the file, if the file length has changed then the unread
section of the file is read and parsed into lines before being passed back to the event handler.
Note, because the class uses the threaded timer callbacks on the event hander WILL be made form a
different thread, keep this in mind when using the class.