Bugs item #1241006, was opened at 2005-07-19 17:21 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1241006&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Distutils Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Giles Antonio Radford (mewf) Assigned to: Nobody/Anonymous (nobody) Summary: Distutils does not use logging Initial Comment: distutils.log creates its own PEP 282-like logger class, which is fine from the distutils point of view, but not exactly brilliant if you want to intercept the calls using the logging facilities that have been in python since 2.3. Recommended fix: If, in fact, distutils.log has to be kept compatible with 2.1 as is claimed in the source file then something along the lines of: try: import logging _global_log = logging.getLogger('distutils') except ImportError: #insert current Log class definition here _global_log = Log() Also, changing the values for DEBUG, INFO, WARN, ERROR and FATAL to be the same as the ones in logging.py is probably a good idea. The distutils logger should have its own formatter that prints out lines as the thing currently does, but this formatter should be set within the code for setup() rather than in the log module. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1241006&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com