---- begin ----- import logging logging.basicConfig(level=logging.DEBUG,format="%(asctime)s" "%(levelname)-5.5s [%(name)s %(module)s:%(funcName)s:%(lineno)d]" "%(message)s")
def run():
x = 5
logging.debug("X = %d" % x)
run()
----- end -----
You can probably use string default concatenation feature of python.
Anyway, am just nitpicking. Loved your example, as I was unaware of logging
module.
-- http://mail.python.org/mailman/listinfo/python-list
