Re: [Tutor] module.class.method in logging.debug

2010-03-15 Thread spir
On Mon, 15 Mar 2010 13:26:27 -0400 Brian Jones wrote: > I tried a couple of things I could think of, and successfully got the module > and class without issue, but the one missing piece was the method name. All methods and funcs (and types) have a __name__ attr. from types import FunctionType a

Re: [Tutor] module.class.method in logging.debug

2010-03-15 Thread Brian Jones
On Mon, Mar 15, 2010 at 1:26 PM, Brian Jones wrote: > Hi all, > > I have some code that is a plugin for a larger app, and I'd like to be able > to properly log issues that arise in the plugin code. I may not be > maintaining this code forever, and I'd like the logging to work even if it's > refac

[Tutor] module.class.method in logging.debug

2010-03-15 Thread Brian Jones
Hi all, I have some code that is a plugin for a larger app, and I'd like to be able to properly log issues that arise in the plugin code. I may not be maintaining this code forever, and I'd like the logging to work even if it's refactored later and code moved around, method names change, etc. So I