Re: ruby eventlog monitor for windows

Berger, Daniel [mailto:[email protected]] of win32 team wrote last
Wednesday, April 26, 2006 1:45 AM:

require ‘win32/eventlog’

include Win32

# Tail the event log

EventLog.open(‘Application’).tail{ |log|

p log

}

# Read an event log

EventLog.read(‘Application’){ |log|

p log

}

Daniel,

That’s it and it’s much better and powerful than i expected! Amazingly
powerful and simple! Thank you and thanks to the win32 team, too.

(i’m sorry i was too lazy to lookup the other files. I only read the
readme and tutorial.txt and then stopped. i did not read evenlog.txt and
the other .rb samples wc were very complete)

thank you and kind regards -botp

Regards,

Dan