[issue3992] removed custom log from distutils

Tarek Ziadé <report@bugs.python.org> at psf.upfronthosting.co.za Tarek Ziadé <report@bugs.python.org> at psf.upfronthosting.co.za
Thu May 7 10:31:42 CEST 2009


Tarek Ziadé <ziade.tarek at gmail.com> added the comment:

I still don't see the need to :

- rename Log to Logger
- remove DEBUG, INFO, WARN, ERROR, FATAL from the module

In the next version of python we will have to keep them 
in any case and add a deprecation warning
because third party tools might use them.

The only thing we have to add is the "logger" global variable that
will let us use the logging module (protected as you said by the 
ImportError


so basically:

try:
  import logging
  logger = _global_log = logging.getLogger('distutils')
except ImportError:
  logger = _global_log = Log()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3992>
_______________________________________


More information about the Python-bugs-list mailing list