Re: [python-win32] pywintypes.error: (5, 'RegSetValueEx', 'Access denied')

2018-03-15 Thread eryk sun
On Thu, Mar 15, 2018 at 8:44 AM, Robin Kluth wrote: > > I use Python 2.7 on win10 and pywin32 223. I want to log messqages to the > EventLog: > > dllname = os.path.dirname(__file__) > ntl = NTEventLogHandler("Python Logging Test", dllname=dllname) The Python module should not be used for dllname.

Re: [python-win32] pywintypes.error: (5, 'RegSetValueEx', 'Access denied')

2018-03-15 Thread Tim Roberts
Robin Kluth wrote: > > I use Python 2.7 on win10 and pywin32 223. I want to log messqages to > the EventLog: > > dllname = os.path.dirname(__file__) > ntl = NTEventLogHandler("Python Logging Test", dllname=dllname) > logger = logging.getLogger("") > logger.setLevel(logging.DEBUG) > logger.addHandle

[python-win32] pywintypes.error: (5, 'RegSetValueEx', 'Access denied')

2018-03-15 Thread Robin Kluth
Hi :) I use Python 2.7 on win10 and pywin32 223. I want to log messqages to the EventLog: dllname = os.path.dirname(__file__) ntl = NTEventLogHandler("Python Logging Test", dllname=dllname) logger = logging.getLogger("") logger.setLevel(logging.DEBUG) logger.addHandler(ntl) logger.error("This