Public 属性 | |
string | filePath |
int | fileSize |
LOG_LEVEL | level |
声网 SDK 日志文件的配置。
string agora_gaming_rtc.LogConfig.filePath |
日志文件的完整路径。
默认路径为:
/storage/emulated/0/Android/data/<package name>/files/agorasdk.log
App Sandbox/Library/caches/agorasdk.log
App Sandbox/Library/Logs/agorasdk.log
,例如 /Users/<username>/Library/Containers/<App Bundle Identifier>/Data/Library/Logs/agorasdk.log
~/Library/Logs/agorasdk.log
C:\Users\<user_name>\AppData\Local\Agora\<process_name>\agorasdk.log
请确保你指定的目录存在而且可写。你可通过该参数修改日志文件名。
int agora_gaming_rtc.LogConfig.fileSize |
单个日志文件的大小,单位为 KB。默认值为 1024 KB。如果你将 fileSize
设为 1024 KB,SDK 会最多输出总计 5 MB 的日志文件。 如果你将 fileSize
设为小于 1024 KB,设置不生效,单个日志文件最大仍为 1024 KB。