Package list logbook / debian/0.12.3-1 testwin32log.py
debian/0.12.3-1

Tree @debian/0.12.3-1 (Download .tar.gz)

testwin32log.py @debian/0.12.3-1raw · 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')