@@ -0,0 +1,592 @@
+# -*- coding: utf-8 -*-%0A%0Aimport logging%0A%0A%0ALOGGING_FORMAT = '%25(name)-12s: %25(levelname)-8s %25(message)s'%0A%0A%0Aclass Logging(object):%0A%0A    @staticmethod%0A    def get_logger(name, level=0):%0A        %22%22%22Setup a logging instance%22%22%22%0A        console = logging.StreamHandler()%0A        level = %5Blogging.NOTSET, logging.ERROR, logging.WARN, logging.INFO,%0A                 logging.DEBUG%5D%5Blevel%5D%0A        console.setLevel(level)%0A        formatter = logging.Formatter(LOGGING_FORMAT)%0A        console.setFormatter(formatter)%0A        logging.getLogger('').addHandler(console)%0A        return logging.getLogger(name)%0A

Add logging class