(self, level, msg)
Add a log entry for this task.

        :param level: The log level for this entry.
        :type level: str ('debug', 'info', 'warning', 'error', 'critical')
        :param msg: The log message.
        :type msg: str
Add a log entry for this task.
Add a log entry for this task .
def _log(self, level, msg):
        """
        Add a log entry for this task.

        :param level: The log level for this entry.
        :type level: str ('debug', 'info', 'warning', 'error', 'critical')
        :param msg: The log message.
        :type msg: str
        """

        self.ensure_current_task()

        now = str(datetime.now())
        log = EmbeddedAnalysisResultLog()
        log.level = level
        log.message = msg
        log.datetime = now
        self.current_task.log.append(log)
def _log ( self , level , msg ) : self . ensure_current_task ( ) now = str ( datetime . now ( ) ) log = EmbeddedAnalysisResultLog ( ) log . level = level log . message = msg log . datetime = now self . current_task . log . append ( log )