Add function to optionally add program invocation to log header.