Example #1
0
    def info(self, msg):
        formatter_stream = logging.Formatter(
            ColorPrint.blue('%(levelname)s :: %(asctime)s :: %(message)s'))
        self.__stream_handler.setFormatter(formatter_stream)
        self.__stream_handler_err.setFormatter(formatter_stream)

        self.__logger.info(msg)
Example #2
0
    def info(self, msg):
        formatter_stream = logging.Formatter(ColorPrint.blue('%(levelname)s :: %(asctime)s :: %(message)s'))
        self.__stream_handler.setFormatter(formatter_stream)
        self.__stream_handler_err.setFormatter(formatter_stream)

        self.__logger.info(msg)
Example #3
0
 def debug(self, msg):
     formatter_stream = logging.Formatter(ColorPrint.blue(self.formatter_str))
     self.stream_handler_stderr.setFormatter(formatter_stream)
     self.stream_handler_stdout.setFormatter(formatter_stream)
     self.__logger.debug(msg)