From 5c75b5c651a8026d153d7c193dd81c53f952d7c6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 20 Feb 2014 14:19:50 -0800 Subject: [PATCH] package_cache: Add a package-level logger This gives us a single location for configuring verbosity, handlers, etc., for submodule loggers. --- package_cache/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package_cache/__init__.py b/package_cache/__init__.py index a4dee93..4b7feef 100644 --- a/package_cache/__init__.py +++ b/package_cache/__init__.py @@ -17,4 +17,11 @@ "A caching proxy for package downloads" +import logging as _logging + + __version__ = '0.0' + +LOG = _logging.getLogger(__name__) +LOG.setLevel(_logging.WARNING) +LOG.addHandler(_logging.StreamHandler()) -- 2.26.2