<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ArchiveProcessedFile(filePath, archiveDir):
 """ Move file from given file path to archive directory. Note the archive directory is relative to the file path directory. Parameters filePath : string File path archiveDir : string Name of archive directory """

  targetDir = os.path.join(os.path.dirname(filePath), archiveDir)
  goodlogging.Log.Info("UTIL", "Moving file to archive directory:")
  goodlogging.Log.IncreaseIndent()
  goodlogging.Log.Info("UTIL", "FROM: {0}".format(filePath))
  goodlogging.Log.Info("UTIL", "TO:   {0}".format(os.path.join(targetDir, os.path.basename(filePath))))
  goodlogging.Log.DecreaseIndent()
  os.makedirs(targetDir, exist_ok=True)
  try:
    shutil.move(filePath, targetDir)
  except shutil.Error as ex4:
    err = ex4.args[0]
    goodlogging.Log.Info("UTIL", "Move to archive directory failed - Shutil Error: {0}".format(err))