from .handler import CrTplHandler
-__version__ = '1.0.1'
+__version__ = '1.0.2'
LOG = logging.getLogger(__name__)
return res
-# # -------------------------------------------------------------------------
-# def init_logging(self):
-# """
-# Initialize the logger object.
-# It creates a colored loghandler with all output to STDERR.
-# Maybe overridden in descendant classes.
-#
-# @return: None
-# """
-#
-# log_level = logging.INFO
-# if self.verbose:
-# log_level = logging.DEBUG
-# elif self.quiet:
-# log_level = logging.WARNING
-#
-# root_logger = logging.getLogger()
-# root_logger.setLevel(log_level)
-#
-# # create formatter
-# format_str = ''
-# if self.verbose:
-# format_str = '[%(asctime)s]: '
-# format_str += self.appname + ': '
-# if self.verbose:
-# if self.verbose > 1:
-# format_str += '%(name)s(%(lineno)d) %(funcName)s() '
-# else:
-# format_str += '%(name)s '
-# format_str += '%(levelname)s - %(message)s'
-# formatter = None
-# if self.terminal_has_colors:
-# formatter = ColoredFormatter(format_str)
-# else:
-# formatter = logging.Formatter(format_str)
-#
-# # create log handler for console output
-# lh_console = logging.StreamHandler(sys.stderr)
-# lh_console.setLevel(log_level)
-# lh_console.setFormatter(formatter)
-#
-# root_logger.addHandler(lh_console)
-#
-# if self.verbose < 3:
-# paramiko_logger = logging.getLogger('paramiko.transport')
-# if self.verbose < 1:
-# paramiko_logger.setLevel(logging.WARNING)
-# else:
-# paramiko_logger.setLevel(logging.INFO)
-#
-# return
-
# -------------------------------------------------------------------------
def post_init(self):
"""