Updating MPSGameLift gem so that server logs are saved out to a location based on the time and server pid (process id). This is useful for GameLift which will run multiple servers at once and will save the server.log files if the server crashes. Before this change, the log folder would contain server.log, server(1).log, server(2).log etc making it hard to tell which logs belongs to which server. After this change, there are separate log folders per server (each folder name is the pid).
Updating GameLift readme to include sv_gameSessionNoPlayerShutdownTimeoutSeconds; using the default value in the readme, but it's good to know it exists.
Tested by running multiplayer servers on GameLift and intentionally terminating a server with a non-0 exit code so that GameLift will grab the logs. The log folder archived only contains the 1 server.log file
Here's the code used to intentionally terminate the server with a non-zero exit code.
AzFramework::ApplicationRequests::Bus::Broadcast(&AzFramework::ApplicationRequests::TerminateOnError, 42);
Tested by running multiplayer servers on GameLift and intentionally terminating a server with a non-0 exit code so that GameLift will grab the logs. The log folder archived only contains the 1 server.log file
Here's the code used to intentionally terminate the server with a non-zero exit code.
AzFramework::ApplicationRequests::Bus::Broadcast(&AzFramework::ApplicationRequests::TerminateOnError, 42);