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

        self.__logger.error(msg)
Beispiel #2
0
    def warning(self, msg):
        formatter_stream = logging.Formatter(
            ColorPrint.magenta('%(levelname)s :: %(asctime)s :: %(message)s'))
        self.__stream_handler.setFormatter(formatter_stream)
        self.__stream_handler_err.setFormatter(formatter_stream)

        self.__logger.warning(msg)
Beispiel #3
0
    def debug(self, msg):
        formatter_stream = logging.Formatter(
            ColorPrint.yellow('%(levelname)s :: %(asctime)s :: %(message)s'))
        self.__stream_handler.setFormatter(formatter_stream)
        self.__stream_handler_err.setFormatter(formatter_stream)

        self.__logger.debug(msg)
Beispiel #4
0
 def toolwrapper_error(self, msg, tw_name):
     if OptionManager.instance()["--toolwrapper-log"]:
         self.__tw_streamhandler.setFormatter(
             logging.Formatter(
                 ColorPrint.green(
                     tw_name +
                     ' :: %(asctime)s :: %(levelname)s :: %(message)s')))
         self.__tw_logger.error(msg)
Beispiel #5
0
    def warning(self, msg):
        formatter_stream = logging.Formatter(ColorPrint.magenta('%(levelname)s :: %(asctime)s :: %(message)s'))
        self.__stream_handler.setFormatter(formatter_stream)
        self.__stream_handler_err.setFormatter(formatter_stream)

        self.__logger.warning(msg)
Beispiel #6
0
    def error(self, msg):
        formatter_stream = logging.Formatter(ColorPrint.red('%(levelname)s :: %(asctime)s :: %(message)s'))
        self.__stream_handler.setFormatter(formatter_stream)
        self.__stream_handler_err.setFormatter(formatter_stream)

        self.__logger.error(msg)
Beispiel #7
0
    def debug(self, msg):
        formatter_stream = logging.Formatter(ColorPrint.yellow('%(levelname)s :: %(asctime)s :: %(message)s'))
        self.__stream_handler.setFormatter(formatter_stream)
        self.__stream_handler_err.setFormatter(formatter_stream)

        self.__logger.debug(msg)
Beispiel #8
0
 def toolwrapper_error(self, msg, tw_name):
     if OptionManager.instance()["--toolwrapper-log"]:
         self.__tw_streamhandler.setFormatter(logging.Formatter(ColorPrint.green(tw_name + ' :: %(asctime)s :: %(levelname)s :: %(message)s')))
         self.__tw_logger.error(msg)
Beispiel #9
0
 def critical(self, msg):
     formatter_stream = logging.Formatter(ColorPrint.red(self.formatter_str))
     self.stream_handler_stderr.setFormatter(formatter_stream)
     self.stream_handler_stdout.setFormatter(formatter_stream)
     self.__logger.critical(msg)
Beispiel #10
0
 def warning(self, msg):
     formatter_stream = logging.Formatter(ColorPrint.yellow(self.formatter_str))
     self.stream_handler_stderr.setFormatter(formatter_stream)
     self.stream_handler_stdout.setFormatter(formatter_stream)
     self.__logger.warning(msg)
Beispiel #11
0
 def info(self, msg):
     formatter_stream = logging.Formatter(ColorPrint.green(self.formatter_str))
     self.stream_handler_stderr.setFormatter(formatter_stream)
     self.stream_handler_stdout.setFormatter(formatter_stream)
     self.__logger.info(msg)
Beispiel #12
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)