From: W. Trevor King Date: Thu, 20 Feb 2014 22:19:50 +0000 (-0800) Subject: package_cache: Add a package-level logger X-Git-Tag: v0.1~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5c75b5c651a8026d153d7c193dd81c53f952d7c6;p=package-cache.git package_cache: Add a package-level logger This gives us a single location for configuring verbosity, handlers, etc., for submodule loggers. --- 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())