Skip to main content

Set log upload path (SetLogPath)

AndroidiOSPC

If you are using Unreal Engine, see SetLogPath in the Unreal Engine SDK.

Set the log path for uploading backend customer service logs.The log path must end with .log.After setting the path, if any log files exist in the directory, the log files will be uploaded automatically.This interface can only be called after receiving the asynchronous callback of InitCustomer.

Function definition​

public static void SetLogPath(string logPath);

Parameter Instructions​

NameTypeExplanation
logPathstringLog file path

Observers​

The callback interface is CustomerResultObserver.
The callback data structure is CustomerResult.

Callback ID is INTL_CUSTOMER_SET_LOG_PATH.

Code example​

var logPath = "path/to/log";
INTLAPI.SetLogPath(logPath);