[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/fiveconfigure.py zLOG -> logging

Andreas Jung andreas at andreas-jung.com
Sun Jan 8 09:36:43 EST 2006


Log message for revision 41221:
  zLOG -> logging
  

Changed:
  U   Zope/trunk/lib/python/Products/Five/fiveconfigure.py

-=-
Modified: Zope/trunk/lib/python/Products/Five/fiveconfigure.py
===================================================================
--- Zope/trunk/lib/python/Products/Five/fiveconfigure.py	2006-01-08 14:34:14 UTC (rev 41220)
+++ Zope/trunk/lib/python/Products/Five/fiveconfigure.py	2006-01-08 14:36:43 UTC (rev 41221)
@@ -21,10 +21,10 @@
 import sys
 import glob
 import warnings
+from logging import getLogger
 
 import App.config
 import Products
-from zLOG import LOG, ERROR
 
 from zope.interface import classImplements, classImplementsOnly, implementedBy
 from zope.interface.interface import InterfaceClass
@@ -43,6 +43,7 @@
 from browser.metaconfigure import page
 
 debug_mode = App.config.getConfiguration().debug_mode
+LOG = getLogger('Five')
 
 def findProducts():
     import Products
@@ -63,7 +64,7 @@
     # in the control panel. However, all attempts to do so has failed from my 
     # side. //regebro
     exc = sys.exc_info()
-    LOG('Five', ERROR, 'Could not import Product %s' % product.__name__, error=exc)
+    LOG.error('Could not import Product %s' % product.__name__, exc_info=exc)
 
 def loadProducts(_context):
     products = findProducts()



More information about the Zope-Checkins mailing list