From: djberg96@... (Daniel Berger) Date: 2004-11-03T06:23:48+09:00 Subject: Re: [ANN] win32-eventlog 0.3.0 Martin DeMello wrote in message news:... > Daniel Berger wrote: > > > > What is it? > > =========== > > A Ruby interface for reading from and writing to the Windows Event > > Log. > > I took a look through the docs and examples, but couldn't find out if > this will let me write the app I want - basically something that will > print out the last n entries to the console. I started up notify.rb and > did a net send to localhost, but it didn't register - is that not the > sort of event you're talking about? > > martin It didn't work because net send's are logged in the "System" log, not the "Application" log. The latter is what EventLog.open() defaults to if no source is specified. Modify the notify.rb script, and create an EventLog object this way: e = EventLog.open("System") It worked fine for me. :) HTH. Dan