Agora RTC Objective-C API Reference Refactor

Properties
AgoraLogConfig Class Reference

Inherits <NSObject>.

## Properties
NSString *_Nullable | filePath
NSInteger | fileSizeInKB
AgoraLogLevel | level

## Property Documentation

## ◆ filePath

- (NSString* _Nullable) filePath
| read write nonatomic copy

The complete path of the log files. Agora recommends using the default log directory. If you need to modify the default directory, ensure that the directory you specify exists and is writable. The default log directory is:

- iOS: AppSandbox/Library/Logs/agorasdk.log
- macOS:
  - If Sandbox is enabled: AppSandbox/Library/Logs/agorasdk.log
  - If Sandbox is disabled: ~/Library/Logs/agorasdk.log

## ◆ fileSizeInKB

- (NSInteger) fileSizeInKB
| read write nonatomic assign

The size (KB) of an `agorasdk.log` file. The value range is [128,20480]. The default value is 2,048 KB. If you set `fileSizeInKByte` smaller than 128 KB, the SDK automatically adjusts it to 128 KB; if you set `fileSizeInKByte` greater than 20,480 KB, the SDK automatically adjusts it to 20,480 KB.

## ◆ level

- (AgoraLogLevel) level
| read write nonatomic assign

The output level of the SDK log file. See `AgoraLogLevel`. For example, if you set the log level to WARN, the SDK outputs the logs within levels FATAL, ERROR, and WARN.