Re: [Tutor] Writing to Windows 64-bit event log

2012-06-19 Thread Tim Golden
On 19/06/2012 06:37, Johan Geldenhuys wrote:
> I've looked all over, but couldn't find any help as far as an API goes
> to log to a 64-bit Windows7 machine event log.

There are functions available in the pywin32 package under
the  win32evtlog module. I have wrapped some of them in my
winsys package. Some examples here:

  http://winsys.readthedocs.org/en/latest/cookbook/event_logs.html

TJG
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Writing to Windows 64-bit event log

2012-06-19 Thread Alan Gauld

On 19/06/12 06:37, Johan Geldenhuys wrote:


I've looked all over, but couldn't find any help as far as an API goes
to log to a 64-bit Windows7 machine event log.


I don't know if your search included MSDN but that would be my third 
port of call after the standard library and Google... There will be a 
Windows API call and you can access those via ctypes or Pythonwin.


There is almost certainly a Windows Knowledge Base article too, use the 
MSDN search to find it...


hth
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Writing to Windows 64-bit event log

2012-06-18 Thread Johan Geldenhuys
Hi there,



I've looked all over, but couldn't find any help as far as an API goes to
log to a 64-bit Windows7 machine event log.



My Python version is 2.7.1 and I am running the 32-bit Windows version on a
Windows 7 laptop.



Is there a way I can log entries to the Windows event log on my laptop from
my Python application?



Thanks

Johan
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor