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

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

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