Package list logbook / upstream/0.12.3 testwin32log.py
upstream/0.12.3

Tree @upstream/0.12.3 (Download .tar.gz)

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