본문으로 건너뛰기

로그 작성

클라이언트에서 다양하게 발생 되는 정보들을 기록할 수 있습니다.

호출 정보

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

호출 상세 정보

파라미터설명타입
tableCode테이블 코드string
params로그 데이터LogParams
callback통신 결과PlayNANOODelegate

소스 코드

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

통신 결과

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

통신 결과 상세 정보

데이터키설명타입
Status처리 결과string