use lgc implementation tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 12 May 2009 15:56:10 +0200
branchtls-sprint
changeset 1741 fe5266f0f88c
parent 1740 2292ae32c98f
child 1742 25a765e756c4
use lgc implementation
__init__.py
--- 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)