# LogConfig (/zh-CN/api-reference/rtc/unity/class-logconfig) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```csharp public class LogConfig { public LogConfig() { filePath = ""; fileSizeInKB = 0; level = LOG_LEVEL.LOG_LEVEL_INFO; } public LogConfig(string filePath, uint fileSize = 1024, LOG_LEVEL level = LOG_LEVEL.LOG_LEVEL_INFO) { this.filePath = filePath; this.fileSizeInKB = 0; this.level = level; } public string filePath { set; get; } public uint fileSizeInKB { set; get; } public LOG_LEVEL level { set; get; } }; ``` ## 属性 [#属性] 日志文件的完整路径。声网建议你使用默认的日志路径。如果你需要修改默认的日志路径,请确保你指定的路径存在且可写。自定义路径必须包含日志文件名,例如 `/path/to/agorasdk.log`;如果只指定日志目录,请在目录末尾添加路径分隔符,SDK 会在该目录下生成 `agorasdk.log`。 默认路径为: - Android:/storage/emulated/0/Android/data/<packagename>/files/agorasdk.log。 - iOS:App Sandbox/Library/caches/agorasdk.log。 - macOS: - 开启沙盒: App Sandbox/Library/Logs/agorasdk.log,例如 /Users/<username>/Library/Containers/<AppBundleIdentifier>/Data/Library/Logs/agorasdk.log。 - 关闭沙盒: ~/Library/Logs/agorasdk.log - Windows:C:\\Users\\<user_name>\\AppData\\Local\\Agora\\<process_name>\\agorasdk.log。 单个 `agorasdk.log` 日志文件的大小,单位为 KB,取值范围为 [128,20480],默认值为 2,048 KB。如果你将 `fileSizeInKByte` 设为小于 128 KB,SDK 会自动调整到 128 KB;如果你将 `fileSizeInKByte` 设为大于 20,480 KB,SDK 会自动调整到 20,480 KB。 SDK 的日志输出等级,详见 [LOG_LEVEL](/zh-CN/api-reference/rtc/unity/enum-loglevel)。 例如,如果你选择 WARN 级别,就可以看到在 FATAL、ERROR 和 WARN 级别上的所有日志信息。