Skip to content

Remove external dependency for logging.handlers.NTEventLogHandler #135852

Open
@aisk

Description

@aisk

Proposal:

Currently, NTEventLogHandler relies on external library pywin32 to provide its functionality. But it's a little bit weird for a standard library to depend on a 3rd-party library.

The pywin32 is only used to write some registry keys, and call RegisterEventSourceW, DeregisterEventSource, and ReportEventW to do the job.

We can use winreg to write the registry keys, and wrap these functions in the _winapi module, then use them to replace pywin32.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsstdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions