Log file capture point?

After a session ends when are the log files captured, how long do I need to wait before clearing it if I want the log to only be for one session?

Until now I have been restarting the server process every session and changing the log file name each gamelift init.

I am asking because I want to make the server stay active and so can no longer change the log name every session.

Hi @marcv2, Logs are uploaded after you call TerminateGameSession() or ProcessEnding(). How long it takes to upload depends on the size of the log files.

Your approach of restarting the server process and providing a unique log file name is good. Just make sure you’re specifying the specific name of the log files in your LogParameters. If you’re worried about clutter you could add log trimming before calling InitSDK().

Hope this helps,

Ben