mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Add python 2.3 logging to the tree. Only install if not present. Convert xend to use logging.
9 lines
157 B
Python
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"
|
|
|