def format_process_output(output, in_path):
  """Format process output for logging."""
  # Replace full paths to prevent differences based on build directories.
  if in_path:
    output = output.replace(in_path, '${IN}')
  return output