[Win32utils-devel] EventLog#tail followup
phasis at gmail.com
Fri May 19 23:06:24 EDT 2006
2006/5/20, Daniel Berger <djberg96 at gmail.com>:
> The solution I see is something like this:
> * Set a @last instance variable in the constructor.
> * In the read_last_record function, check to see if @last is nil. If it
> is nil, then it's our first read. Use the current approach, and set
> @last to the record number.
> * If @last isn't nil, use EVENTLOG_FORWARDS_READ | EVENTLOG_SEEK_READ
> flags instead, and use @last + 1 as the offset.
> I tested this in the pure Ruby version and it seems to work fine.
> Sound good?
That sounds reasonable.
I searched some utilities of tail for event log.
More information about the win32utils-devel