Create Log
Records various types of information that occur on the client side.
Call Information
GameLog.Save(string tableCode, LogParams params, PlayNANOODelegate callback) {}
Call Information 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");
}
});
}
}
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
Communication Result Details
Data Key | Description | Type |
---|---|---|
Status | Operation result | string |