[Zope3-dev] Re: [Zope-dev] zLOG is dead

Barry Warsaw barry at zope.com
Tue Apr 20 10:41:35 EDT 2004


On Tue, 2004-04-20 at 10:01, Chris Withers wrote:

> This discussion smells like that string should be computed from introspection.
> 
> Why can't it be computed from introspecting whatever code called the log method?

You probably could do it via sys._getframe().  I'm not sure you should
though. ;)

> (btw, is there an intro to Python's logger stuff? looks like I need to get up to 
> speed on this...)

AFAIK, the online logging package docs are about it.  That's not the
easiest way to learn how to use the package unfortunately.

-Barry





More information about the Zope-Dev mailing list