跳到主要内容

设置日志上传路径(SetLogPath)

AndroidiOSWindows
如果您使用的是 Unreal Engine,请参见 Unreal Engine SDK 的 SetLogPath。

设置上传后台客服务日志的日志路径。日志路径以 .log 结尾。设置路径后,如果该目录下存在任何日志文件,则日志文件会自动上传。这个接口只有在收到 InitCustomer 的异步回调后才能被调用。

函数定义​

public static void SetLogPath(string logPath);

入参说明​

名称类型说明
logPathstring日志文件路径

回调处理​

回调处理接口是 CustomerResultObserver。
回调数据结构是 CustomerResult。

回调 ID 是 INTL_CUSTOMER_SET_LOG_PATH。

代码示例​

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