GameLift and Unity random log location?

Hello, we run multiple processes per instance. Sometimes we get a truncated log, which we believe is because if we have a crash or process exit, Amazon restarts the process before the log is captured, and the log gets overwritten.

Unity apps require that the log file location be specified via the command line. We have each of our server processes use a different log file location command line argument. But, I think we need more, we need to embed a process id or some random number to make the log file unique.

I can’t use a launcher (that would generate a random log filename and spawn the real server with the random log filename as a cmd line argument) because GameLift requires that the process it spawns is the one that initializes and uses the GameLift SDK.

Does anyone have any ideas on how to get around this? Maybe if there was a way for me to get a random number in the server processes command line configuration? I’m just not sure how I can work around this.

Thanks,

Jeff