[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx zLOG

Andreas Jung andreas at andreas-jung.com
Sun Jan 8 09:33:19 EST 2006


Log message for revision 41219:
  zLOG
  

Changed:
  U   Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx

-=-
Modified: Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx
===================================================================
--- Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx	2006-01-08 14:30:11 UTC (rev 41218)
+++ Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx	2006-01-08 14:33:18 UTC (rev 41219)
@@ -99,8 +99,9 @@
         An example of an External Method used as a delete script::
   
              def deleteScript(item, container):
-                 from zLOG import LOG
-                 LOG(100, 'test', 'id: %s' % item.getId())
+                 from logging import getLogger
+                 LOG = getLogger('test')
+                 LOG.info('id: %s' % item.getId())
 
   See Also
 



More information about the Zope-Checkins mailing list