Redirect log output for games using Unreal
Warning: We are winding down our direct support for the Unity Multiplay Game Server Hosting Service. Unity will support the Multiplay Game Server Hosting Service through March 31, 2026. To ensure continuity for live titles, we are licensing our Multiplay Game Server Hosting software to Rocket Science Group. Learn more about them here.
Multiplay Hosting expects your game to output logs to a log directory directly using the $$log_dir$$ configuration variable.
However, games using the Unreal Engine and the -Userdir launch parameter output logs to a log directory nested within $$log_dir$$/logs/Saved/Logs/ with Unreal creating the recursive directories.
Multiplay Hosting doesn't yet support traversing more than one nested log directory. To work around this, use the -LOG launch parameter to redirect to a specific file:
-LOG=../../../../../../../../$$log_dir$$/$$serverid$$.logThis causes the Unreal Engine to write to the correct directory and name the log after the specific server ID.
Note: Multiplay Hosting doesn't currently support file extensions other than .log.