Brian Sullivan wrote at 2005-10-7 11:42 -0400: >I am looking for a simple strategy to write a debug log file from a python >script.
In an External Method (trusted code), you can write files as usual in Python. An elementary log function could be: def log(msg): open(LOGFILE, "a").write(msg) You cannot use "open" in untrusted code (for obvious reasons). -- Dieter _______________________________________________ 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 )