We have a UE4 dedicated server running in the cloud with playfab with Thunderhead Servers. After being able to play on it the first time we wanted to get the server logs. The documentation says we should put our logs into the right directory and they will be fetched by playfab and made available for download.
The easiest and most straight forward way to let Unreal log into that directory would be to use the ABSLOG parameter. But how do we get the directory we are supposed to log into? The Playfab GSDK for cpp we use in the UE4 server seems to have code to get the right directory. It seems to check a command line variable and a json config file and uses whatever is availble.
Can the log folder in a could based environment with Thunderhead Servers really come from a json config file? Because if we could rely on the environment variable GSDK_LOG_FOLDER then we could just use it in a script to launch the dedicated server like this:
UEServer.exe ABSLOG=%GSDK_LOG_FOLDER%\Serverlog.txt
Will the above work reliably?