[Tutor] introspecting an object for method's name?
Serdar Tumgoren
zstumgoren at gmail.com
Mon Oct 19 15:03:53 CEST 2009
> 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
More information about the Tutor
mailing list