question

Jorge Mendez avatar image
Jorge Mendez asked

Game Server Logs

Hey Everyone!

Im new to Playfab and uploaded a Photon Sample that has integration with PlayFab: https://doc.photonengine.com/en-us/bolt/current/demos-and-tutorials/playfab-integration/overview

Following the instructions and help of Photon folks I made it working but i have a problem: cannot find any logs.

I couldn't download the logs from the Playfab services neither found any usefull logs on the VM. Only found the Bolt_Log_{7}_{0}Y-{1}M-{2}D_{3}H{4}M{5}S_{6}MS.txt but with just this info:

Starting Photon Bolt using platform: UdpKit.Platform.PhotonPlatform

Id allocator reset with id 1


I know it is logging because Photon guys told me: Looking at your code and the generated log files, that you can download from the PlayFab service after a Server has been shutdown (you can see a second file called PF_ConsoleLogs.txt, that contains all the logs structured as a kind of JSON file).


I couldn't find nor download the mentioned file. Neither understood quite well about shutdown the server, maybe referring to: https://docs.microsoft.com/en-us/rest/api/playfab/multiplayer/multiplayerserver/shutdownmultiplayerserver?view=playfab-rest ?

Anyways, Ive tried that option but the SessionId is empty on the "Servers" section of the build.

How and where could I find logs on the PlayFab Servers?

Any help will be appreciated!

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

·
Citrus Yan avatar image
Citrus Yan answered

There are two ways to add some logs from your game server:

  1. Use the GSDK's Log method - It will add your own log lines to the GSDK log file.
  2. Write your own log file in the appropriate log directory that the PlayFab VM agent will zip up and upload.

Please make sure your game server is using one of them. And, you may find this tutorial helpful:

https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/integrating-game-servers-with-gsdk#logging-with-the-gsdk

Once your game server is terminated, you can go to the Servers page in the Multiplayer Servers 2.0 tab, and select View Archive on the top right to see the log files, for more info, please check out this doc:

https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/archiving-and-retrieving-multiplayer-server-logs

And, it would be helpful if you can provide your title id so that we can have a closer look at what’s going on.

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.