Skip to main content

Set log upload path (SetLogPath)

AndroidiOSWindows
If you are using Unreal Engine, see Unreal Engine SDK's SetLogPath.

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