[Zope] logging inside TTW script

Andreas Jung lists at andreas-jung.com
Sun Mar 6 07:46:09 EST 2005



--On Sonntag, 6. März 2005 13:38 Uhr +0100 Milos Prudek <prudek at bvx.cz> 
wrote:

>> Why should logging within a PythonScript (e.g. through zLOG) be
>> discarded? The zLOG engine is *not* tied to transactions.
>
> Thank you Andreas. Could you please post a one-line simplest example of
> using zLOG in a TTW Python Script ?
>

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

from zLOG import lOG, INFO

LOG(ident, INFO, reason)

Of course you have to enable the import of the zLOG  for PythonScripts.

-aj



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050306/5ca46786/attachment.bin


More information about the Zope mailing list