From 4b7fec44f0ce55256b3f8f1fde19f2b7ed6fe485 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 5 Jun 2014 04:28:06 +0000 Subject: 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 --- rpki/__init__.py | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'rpki/__init__.py') 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 -- cgit v1.2.3