Displaying 2 results from an estimated 2 matches for "read_last_event".
2006 May 21
6
Possible problems with EventLog#write
Hi,
I''ve got EventLog#write and EventLog.add_event_source methods done.
Well, I *think* they''re done, but I can''t get the data (text) to work
properly, and I''m not sure if it''s a bug in my .mc file, the
add_event_source method, the write method, or just a goof in my test file.
The source, category and event id seem to be ok. However, the
2006 May 20
0
EventLog#tail is broken
...ackwards through the current
event log backwards.
Look at this sample below. The first record is correct. Then another
event happens, but instead of the latest record, I get an *earlier*
record. Thinking about the flags that are set, EVENTLOG_BACKWARDS_READ
| EVENTLOG_SEQUENTIAL_READ in the read_last_event() function, it makes
sense. It will read backwards sequentially.
C:\eclipse\workspace\win32-eventlog>irb
irb(main):001:0> require ''win32/eventlog''
=> true
irb(main):002:0> include Win32
=> Object
irb(main):003:0> EventLog.open(''Security'').ta...