[Zope-Checkins] SVN: Products.Five/trunk/site/metaconfigure.py zLOG -> logging

Andreas Jung andreas at andreas-jung.com
Thu Jun 8 13:08:46 EDT 2006


Log message for revision 68527:
  zLOG -> logging
  

Changed:
  U   Products.Five/trunk/site/metaconfigure.py

-=-
Modified: Products.Five/trunk/site/metaconfigure.py
===================================================================
--- Products.Five/trunk/site/metaconfigure.py	2006-06-08 17:05:31 UTC (rev 68526)
+++ Products.Five/trunk/site/metaconfigure.py	2006-06-08 17:08:43 UTC (rev 68527)
@@ -25,12 +25,14 @@
 
 from Products.Five.site.localsite import FiveSite
 
-from zLOG import LOG, WARNING
+import logging
 
+LOG = logging.getLogger('Five')
+
 _localsite_monkies = []
 def classSiteHook(class_, site_class):
     if class_ in _localsite_monkies:
-        LOG('Five', WARNING, "Class %s already has a site hook" % class_)        
+        LOG.warn("Class %s already has a site hook" % class_)        
     else:
         _localsite_monkies.append(class_)
     setattr(class_, 'getSiteManager', site_class.getSiteManager.im_func)



More information about the Zope-Checkins mailing list