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
| Parameter | Description | Type |
|---|---|---|
| tableCode | Table code | string |
| params | Log data | LogParams |
| callback | Communication result | PlayNANOODelegate |
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 Key | Description | Type |
|---|---|---|
| Status | Processing result | string |