question

brian-8 avatar image
brian-8 asked

Unity Server Logs in Real Time

I'm running my game server as a process and using a startup command like:

gameserver.exe -server -address 0.0.0.0 -nographics -batchmode -logFile

I can see my server listening but there seems to be no way to actually see the logs in real time. I have tried setting the -logFile to a path but it hangs and just keeps restarting.

Is there just no way to see real time logs in a game server?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

If you have problem when you deploy your server build, you can debug locally to see if there is any error log output, refer to LocalMultiplayerAgentOverview - PlayFab | Microsoft Docs. If your server build can be deployed normally, you can set StartGameCommand to C:\\Assets\\UnityServer.exe -nographics -batchmode -logFile <log_file_path>, then you can manually connect to the VM to see real time logs in the file path you specified.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]