Where can I find the server logs ? I'm using somthing like that on the cloud script
log.info("informations : " + myInformations);
So where are the logs ? Must I use something else instead ?
Where can I find the server logs ? I'm using somthing like that on the cloud script
log.info("informations : " + myInformations);
So where are the logs ? Must I use something else instead ?
I wasn't accurate enought in my description. I'm looking for a tool to log some events, not really for debugging. I would like to record all abnormal situation, like uncorrect responses from another player, someone with an incorrect id, someone who is trying to cheat and so on. So I thought about a log on the server, or, it can be anything else if any tool like that exists.
Ah, in that case, I would recommend using the LogEvent call to generate a custom event with whatever information you need. That would then give you the ability to do data analysis on user behaviors in your game, to find those situations. We have a few options for analytics in our Add-ons marketplace right now, and we'll be adding to that shortly.
Ok for LogEvent or a data analysis plugin, but is there somewhere an example or a tutorial to include that in my server script ?
To use LogEvent in Cloud Script, you would call it as server.LogEvent. There are a lot of options, which are detailed in the doc page for LogEvent, here: http://api.playfab.com/Documentation/Server/method/LogEvent. For example, if you wanted to send an event stating that the player died at a specific location, you would use the currentPlayerId for the PlayFabId, a custom EventName, and then provide any details you need (like XYZ location) in the Body.
No one has followed this question yet.