Skip to main content

Write Log

You can record various types of information generated from the client.

Call Information

GameLog.Save(string tableCode, LogParams params, PlayNANOODelegate callback) {}

Call Details

ParameterDescriptionType
tableCodeTable codestring
paramsLog dataLogParams
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

GameLog.LogParams logParams = new GameLog.LogParams();
logParams.Add("LogKey1", "LogValue1");
logParams.Add("LogKey2", "LogValue2");
logParams.Add("LogKey3", "LogValue3");
logParams.Add("LogKey4", "LogValue4");

string tableCode = "string";
plugin.GameLog.Save(tableCode, logParams, (state, message, jsonString, dictionary) => {
if (isSuccess)
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}

Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}

Response Details

Data KeyDescriptionType
StatusProcessing resultstring