__init__.py
branchtls-sprint
changeset 1741 fe5266f0f88c
parent 1498 2c6eec0b46b9
child 1954 9b20f3504af8
--- a/__init__.py	Tue May 12 15:56:00 2009 +0200
+++ b/__init__.py	Tue May 12 15:56:10 2009 +0200
@@ -22,13 +22,7 @@
 from urllib import quote as urlquote, unquote as urlunquote
 
 from logilab.common.decorators import cached
-
-def set_log_methods(cls, logger):
-    """bind standart logger's methods as static methods on the class
-    """
-    cls._logger = logger
-    for attr in ('debug', 'info', 'warning', 'error', 'critical', 'exception'):
-        setattr(cls, attr, getattr(logger, attr))
+from logilab.common.logging_ext import set_log_methods
 
 if os.environ.get('APYCOT_ROOT'):
     logging.basicConfig(level=logging.CRITICAL)