Generate a string for a process that can be used in logging