Re: ruby eventlog monitor for windows


#1

Something like an event viewer yet very powerful,

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
}

Regards,

Dan

This communication is the property of Qwest and may contain confidential
or
privileged information. Unauthorized use of this communication is
strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
destroy
all copies of the communication and any attachments.