[python-win32] windows event log

Bob Gailer bgailer at gmail.com
Fri Nov 9 14:09:57 EST 2018


On Nov 9, 2018 9:04 AM, "the Right Direction" <info at therightdirection.nl>
wrote:
>
> i have a custom event log called "BGT Monitoring"
>
> i want a handler to that so i can write to this eventlog from python
> hAppLog = win32evtlog.RegisterEventSource(None, "BGT Monitoring
Log".encode("ascii"))
>
> result is: Objects of type 'bytes' can not be converted to Unicode.
>
> what can i do?

Provide the entire traceback.

Bob Gailer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20181109/3a13cf35/attachment.html>


More information about the python-win32 mailing list