python-tuf/tuf/interposition/utility.py
2013-09-09 16:05:51 -04:00

43 lines
606 B
Python

import logging
# Import our standard logger for its side effects.
import tuf.log
class InterpositionException(Exception):
"""Base exception class."""
pass
class Logger(object):
"""A static logging object for tuf.interposition."""
__logger = logging.getLogger("tuf.interposition")
@staticmethod
def debug(message):
Logger.__logger.debug(message)
@staticmethod
def exception(message):
Logger.__logger.exception(message)
@staticmethod
def info(message):
Logger.__logger.info(message)
@staticmethod
def warn(message):
Logger.__logger.warn(message)