# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1242136570 -7200 # Node ID fe5266f0f88cba593ae3a67f61e6560cf3be2dfe # Parent 2292ae32c98f84d7436f0e68ad9d869d674cc09a use lgc implementation diff -r 2292ae32c98f -r fe5266f0f88c __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)