diff options
author | Rob Austein <sra@hactrn.net> | 2014-06-05 04:28:06 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-06-05 04:28:06 +0000 |
commit | 4b7fec44f0ce55256b3f8f1fde19f2b7ed6fe485 (patch) | |
tree | 04c43527c7b3e7c4d703d727acbe4ae6e02241d3 /rpki/__init__.py | |
parent | 682e2b1ea221bad77e1dc27325cd1232f07ee407 (diff) |
First cut at fully configurable logging system. Still a bit raw, and
not yet documented, but allows detailed logging configuration down to
the class level, and flexible enough to allow runtime configuration if
we decide we need that.
svn path=/trunk/; revision=5860
Diffstat (limited to 'rpki/__init__.py')
-rw-r--r-- | rpki/__init__.py | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/rpki/__init__.py b/rpki/__init__.py index 9e090f63..53a32337 100644 --- a/rpki/__init__.py +++ b/rpki/__init__.py @@ -1,2 +1,26 @@ -# This file exists to tell Python that this the content of this -# directory constitute a Python package. +# $Id$ + +# Copyright (C) 2014 Dragon Research Labs ("DRL") +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND DRL DISCLAIMS ALL WARRANTIES WITH +# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS. IN NO EVENT SHALL DRL BE LIABLE FOR ANY SPECIAL, DIRECT, +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +# This file exists primarily to tell Python that this the content of +# this directory constitute a Python package, but while we're here, +# create a logger object that programs can use to control logging in +# all of the rpki libraries at once. + +import logging + +logger = logging.getLogger(__name__) + +del logging # Cleanup |