Skip to main content

SetLogPath

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see SetLogPath for Unreal Engine SDK.

Set the log path to upload the backend customer service log. The log path ends with .log. After setting the path, if any log file exists in the directory, the log files are automatically uploaded. This interface can only be called after receiving the asynchronous callback of InitCustomer.

Function definition

public static void SetLogPath(string logPath);

Input parameters

NameTypeDescription
logPathstringThe log file path

Callback Processing

The callback processing API is CustomerResultObserver.
The callback data structure is CustomerResult.

The callback methodID is INTL_CUSTOMER_SET_LOG_PATH.

Code sample

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