From: W. Trevor King Date: Thu, 28 Jul 2011 17:07:04 +0000 (-0400) Subject: PackageConfig should automatically add LOG to namespace. X-Git-Tag: v0.1~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39d8d6542c92c3a9563d0fa055e49bd0fc7a344e;p=h5config.git PackageConfig should automatically add LOG to namespace. --- diff --git a/h5config/tools.py b/h5config/tools.py index 38b872e..f7cd2e4 100644 --- a/h5config/tools.py +++ b/h5config/tools.py @@ -77,6 +77,8 @@ class PackageConfig (_config.Config): if not logger: logger = _log.get_basic_logger(package_name, level=_logging.WARN) self._logger = logger + if 'LOG' not in dir(namespace): + namespace.LOG = logger def _name(self): "Find this instance's name in the bound namespace"