There's the EventLog class 
[http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog(v=vs.71).aspx]
 
which you can get at using:

from System.Diagnostics import EventLog

I would think you could make your own NTEventLogHandler which wraps this, 
you could probably contribute it back to the std lib under an if sys.platform 
== 'cli':
so that on IronPython you get the .NET NTEventLogHandler.

> -----Original Message-----
> From: ironpython-users-bounces+dinov=microsoft....@python.org
> [mailto:ironpython-users-bounces+dinov=microsoft....@python.org] On
> Behalf Of Hernán Foffani
> Sent: Friday, January 13, 2012 4:14 AM
> To: ironpython-users@python.org
> Subject: [Ironpython-users] logging.handlers.NTEventLogHandler not in IP?
> 
> Hi,
> While trying the  logging module, I've found this:
> 
>       IronPython 2.7.1 (2.7.0.40) on .NET 4.0.30319.239
>       Type "help", "copyright", "credits" or "license" for more information.
>       >>>
>       >>> import logging
>       >>> import logging.handlers
>       >>>
> logging.getLogger().addHandler(logging.handlers.NTEventLogHandler("MyApp"
> ))
>       The Python Win32 extensions for NT (service, event logging) appear not
> to be available.
>       >>>
> 
> This handler uses Hammond's win32 dlls. Are there any .NET equivalent class?
> An IP implementation might take less than a dozen of lines, I'd guess. What's
> the best practice when overriding Python std lib?
> 
> Regards,
> -H.
> 
> 
> 
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users@python.org
> http://mail.python.org/mailman/listinfo/ironpython-users


_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to