[Ironpython-users] logging.handlers.NTEventLogHandler not in IP?
dinov at microsoft.com
Fri Jan 13 18:24:51 CET 2012
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.com at python.org
> [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On
> Behalf Of Hernán Foffani
> Sent: Friday, January 13, 2012 4:14 AM
> To: ironpython-users at python.org
> Subject: [Ironpython-users] logging.handlers.NTEventLogHandler not in IP?
> While trying the logging module, I've found this:
> IronPython 2.7.1 (184.108.40.206) on .NET 4.0.30319.239
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import logging
> >>> import logging.handlers
> 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?
> Ironpython-users mailing list
> Ironpython-users at python.org
More information about the Ironpython-users