code: def log_error(msg, logger="TaskLogger"):
      
      tasklogger = get_tasklogger(logger)
      tasklogger.error(msg)
      return tasklogger
docs: Log an ERROR message
  
      Convenience function to log a message to the default Logger
  
      Parameters
      ----------
      msg : str
          Message to be logged
      logger : str, optional (default: "TaskLogger")
          Unique name of the logger to retrieve
  
      Returns
      -------
      logger : TaskLogger