> Or just use the built-in logging module which lets you specify > the containing function name as one of its formatting keywords: > > http://docs.python.org/library/logging.html#formatter-objects >
Aha! I had skimmed the logging docs, but hadn't gone far enough down to notice the %(funcName)s formatting option. Thanks to one and all for the suggestions! Serdar _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor