[Zope] zLOG logging inside transaction (was: logging inside TTW script)

Milos Prudek prudek at bvx.cz
Sun Mar 6 08:14:46 EST 2005


> *wink* the zLOG API is documented :-) -> zLOG package

I wish these APIs were documented in Zope Book.

Anyway, I just wrote an external method

def logger(Text):
     from zLOG import LOG, ERROR
     LOG('Zope', ERROR,Text)

and call it from TTW Python as "context.logger("some text")

Cumbersome. But works. Thank you again Andreas.

-- 
Milos Prudek
_________________
Most websites are
confused chintzy gaudy conflicting tacky unpleasant... unusable.
Learn how usable YOUR website is! http://www.spoxdesign.com


More information about the Zope mailing list