NTEventLogHandler not logging `info'?

Jaime Wyant programmer.py at gmail.com
Thu Sep 22 16:14:05 CEST 2005


This code doesn't seem to do what I think it should do:

# python 2.3.2
# not sure of my win32 extensions version

import logging
from logging.handlers import NTEventLogHandler
logger = logging.getLogger("testlogger")
handler = NTEventLogHandler("testlogger")
logger.addHandler(handler)
logger.info("This is a test")


I expected to see an `information' message in my `Application' event
log.  Any ideas?

Thanks,
jw



More information about the Python-list mailing list