parameters: (self, level, msg)
docstring: 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
docstring_summary: Add a log entry for this task.
docstring_tokens: Add a log entry for this task .
function: 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)
function_tokens: 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 )