Codebase list logbook / upstream/0.10.0 testwin32log.py
upstream/0.10.0

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

testwin32log.py @upstream/0.10.0

9af17e1
 
 
 
 
 
 
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')