You can also write an external method that performs logging through any kind of logger you might have available in Python and call this external method from anywhere in Zope since ExternalMethods are first-class Zope objects and can be acquired through standard acquisition.


The simple and effective logger for this situation may be
external method defined as:

def print_this(text):
   print text

Start zope with runzope script and as Anderas said
call your external method from anywhere in Zope .
You'll see your printed statements in the console.

--
Maciej Wisniowski
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to