Log stack issues
Products / Plugins:Video Call / Voice Call
Platform / Framework:iOS / Android / macOS / Windows
Last updated:2022-03-25 15:52
1. How to obtain SDK log information?
Each platform can obtain SDK log information according to the following methods.
Android
Under the path "/storage/Android/data/[application package name]/files", the txt file starting with "zegoavlog" is the log information.
iOS/iPadOS
Connect the iOS device to the Mac, open Xcode, select "Window> Devices and Simulators" on the top menu bar, select the specified device on the left, and then find the app that needs to get logs in "INSTALLED APPS", click the gear icon below, and select "Download Container..." and save. Open the Finder and find the saved ".xcappdata" file, right-click and select "Show Package Content", select the "AppData> Library> Caches> ZegoLogs` directory, and the txt file starting with "zegoavlog" is the log information.
macOS
Under the sandbox, under the path
~/Library/Containers/[application package name Bundle ID]/Data/Library/Caches/ZegoLogs
, the txt file starting with "zegoavlog" is the log information.In non-sandbox, under the path of
~/Library/Caches/ZegoLogs
, the txt file starting with "zegoavlog" is the log information.
Windows
The name of the log folder is: "process name of the program" + "ZEGO.SDK". Enter "%APPDATA%" directly under the path of My Computer
and press Enter to locate the log folder storage directory. The txt file starting with "zegoavlog" is the log information.
2. How to obtain SDK stack information?
Each platform can obtain SDK stack information according to the following methods.
Android
- Real-time analysis log:
adb logcat | ndk-stack -sym [directory where the so dynamic library of target abi (armeabi/armeabi-v7a/arm64-v8a) is located]
E.g:
adb logcat | ndk-stack -sym /path/to/your/project/armeabi-v7a
- Get the log first and then analyze it (use adb logcat to save the log file, and then analyze it through the ndk-stack command)
adb logcat> xx.log
ndk-stack -sym [directory where the so dynamic library of the target abi is located] -dump [log file]
E.g:
adb logcat> crash.log
ndk-stack -sym /path/to/your/project/armeabi-v7a -dump crash.log
iOS/iPadOS
Connect the iOS device to the Mac, open Xcode, select Window> Devices and Simulators
on the top menu bar, select the specified device on the left, and then click View Device Logs
, find the application package name corresponding to Process, and the corresponding Type of Crash Time log, right click on this log and select Export Log
, the saved ".crash" file is the stack information.
macOS
Under the path of ~/Library/Logs/DiagnosticReports
, the file ending with ".crash" is the stack information.