Codebase list logbook / a4456ed testwin32log.py
a4456ed

Tree @a4456ed (Download .tar.gz)

testwin32log.py @a4456edraw · history · blame

1
2
3
4
5
6
7
from logbook import NTEventLogHandler, Logger

logger = Logger('MyLogger')
handler = NTEventLogHandler('My Application')

with handler.applicationbound():
    logger.error('Testing')