Files
xen/tools/python/logging/logging-0.4.9.2/test/mymodule.py
T
mjw@wray-m-3.hpl.hp.com 5b14d2aca3 bitkeeper revision 1.1108.1.8 (40ffc44fV2fs0W-8bRw5B0XcBdmAsw)
Add python 2.3 logging to the tree. Only install
if not present. Convert xend to use logging.
2004-07-22 13:42:39 +00:00

9 lines
157 B
Python

import logging
log = logging.getLogger("MyModule")
def doIt():
log.debug("Doin' stuff...")
#do stuff...
raise TypeError, "Bogus type error for testing"