The win32-eventlog library provides a Ruby interface for reading from and writing to the Windows Event Log