Skip to main content

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

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");
}
});
}
}

Communication Result

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

Communication Result Details

Data KeyDescriptionType
StatusOperation resultstring