[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [ANN] win32-eventlog 0.1.0

Peña, Botp

10/15/2003 1:45:00 AM

Berger, Daniel [mailto:djberge@qwest.com] humbly announced:
> Subject: [ANN] win32-eventlog 0.1.0
>
>
> Hi all,
>
> I'm happy to announce the first release of win32-eventlog.
> This is a Ruby interface to the Win32 EventLog.
>
> Synopsis
> ========
> require "win32/eventlog"
> include Win32
>
> handle = EventLog.open("Application")
>
> handle.total_records # e.g. 916
> handle.oldest_record_number # e.g. 1
>
> # Read through every entry, inspecting each struct in turn
> handle.read{ |elr|
> p elr
> puts
> }
>

cool. This should be in my sysadmin toolbox.
btw sir Daniel, but what do you mean by "no write at the moment"?

> Regards,
> Dan

kind regards,
-botp