[python-win32] Python parser for Windows Event Logs
Tim Roberts
timr at probo.com
Fri Jul 17 18:22:47 CEST 2009
Tony Cappellini wrote:
>
>> while 1:
>> events=win32evtlog.ReadEventLog(hand,flags,0)
>> if not events:
>> break
>> for event in events:
>> print event.EventID, event.StringInserts
>>
>> then it all works as expected.
>>
>
> This is what I'm doing. I have added the while 1 last week, after Mark
> had suggested it.
> It did not change anything. ReadEventLog() returns None on successive calls.
>
> Which versions of Python and Pywin32 are you using?
>
XP SP3, Python 2.4.1, pywin32 214. Perhaps I should send you the C
version of the same program that I wrote for testing, to see if it
behaves differently. The code in pywin32 doesn't do that much
processing -- it's mostly passthrough.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list