你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

日志文件访问教程

本教程介绍如何使用通话 SDK 访问存储在设备上的日志文件。

先决条件

  • 访问 CallClient 实例
// Call when a support request is being called
private void onSupportRequest(String userMessage) {
    // Assuming the getSupportFiles method returns a List or similar collection.
    List<SupportFile> supportFiles = callClient.getdebugInfo().getSupportFiles();

    // Send the files and any user message to your Ticket System            
    dispatchSupportRequestToBackend(userMessage, supportFiles);
}
// Call when a support request is being called
private func onSupportRequest(userMessage: String) {
    // Assuming the getSupportFiles method returns an array or similar collection.
    let supportFiles = callClient.debugInfo.getSupportFiles()
    
    // Send the files and any user message to your Ticket System            
    dispatchSupportRequestToBackend(userMessage: userMessage, supportFiles: supportFiles)
}
// Call when a support request is being called
private void OnSupportRequest(string userMessage) 
{
    // Assuming the GetSupportFiles method returns a List or similar collection.
    IReadOnlyList<SupportFile> supportFiles = callClient.DebugDetails.SupportFiles;

    // Send the files and any user message to your Ticket System            
    DispatchSupportRequestToBackend(userMessage, supportFiles);
}

后续步骤

有关如何构建端到端支持流的详细信息,请参阅集成支持文档。 本文档可帮助你找到可用的工具,以便你在应用程序中创建有效的支持流。

你可能还喜欢

教程

概念文档