From 39d8d6542c92c3a9563d0fa055e49bd0fc7a344e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 28 Jul 2011 13:07:04 -0400 Subject: [PATCH] PackageConfig should automatically add LOG to namespace. --- h5config/tools.py | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.26.2