Exemple #1
0
 def _log(self, message, message2='', level="info"):
     unmanic_logging = unlogger.UnmanicLogger.__call__()
     logger = unmanic_logging.get_logger(self.name)
     if logger:
         message = common.format_message(message, message2)
         getattr(logger, level)(message)
     else:
         print("Unmanic.{} - ERROR!!! Failed to find logger".format(self.name))
Exemple #2
0
    def _log(self, message, message2='', level="info"):
        """
        Generic logging method. Can be implemented on any unmanic class

        :param message:
        :param message2:
        :param level:
        :return:
        """
        # TODO: Format all classes with this to fetch a logger
        unmanic_logging = unlogger.UnmanicLogger.__call__()
        logger = unmanic_logging.get_logger(self.name)
        if logger:
            message = common.format_message(message, message2)
            getattr(logger, level)(message)
        else:
            print("Unmanic.{} - ERROR!!! Failed to find logger".format(self.name))
Exemple #3
0
 def _log(self, message, message2='', level="info"):
     message = common.format_message(message, message2)
     getattr(self.logger, level)(message)