RTCLogConfig class

Inheritance
  • Object
  • PackClass
  • RTCLogConfig

Constructors

RTCLogConfig({required String logPath, required int logFileSize, required LocalLogLevel logLevel, required String logFilenamePrefix, bool? $disableInit})
RTCLogConfig.fromMap(Map<String, dynamic> map)
factory

Properties

$instance → dynamic
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
logFilenamePrefix String
@brief (Optional) Local log file name prefix. It should follow the regular expression pattern of [a-zA-Z0-9_\@-.]{1,128}.
The final file name will be the prefix followed by "_" and the file creation time, and "_rtclog.log" at the end. For example, logPrefix_2023-05-25_172324_rtclog.log.
getter/setter pair
logFileSize int
@brief (Optional) The limits for total log file size in MB. The range is 1 to 100 MB, and the default value is 10 MB.
If logFileSize < 1, it will be set to 1 MB. If logFileSize > 100, it will be set to 100 MB.
The maximum size for a single log file is 2 MB.
If 1 ≤ logFileSize ≤ 2, one log file will be generated. If logFileSize > 2, the first ⌊logFileSize/2⌋ files will be filled with 2 MB each, the ⌊logFileSize/2⌋+1 fill will be filled with logFileSize mod 2.
If the size exceeds the remaining space, the oldest file will be deleted.
getter/setter pair
logLevel LocalLogLevel
@brief (Optional) The logging level. See LocalLogLevel{@link #LocalLogLevel}. The default is warning level.
getter/setter pair
logPath String
@brief (Required) Local log directory.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$createInstance(List args) → dynamic
Factory method for creating instances
override
$destroy() → void
inherited
$init(List args) → void
inherited
findOverrideIndices(List args, List<List<int>> indicesList) List<int>
查找重载参数下标列表 @desc android 构造函数存在重载 此方法通过实际传入参数与构造函数参数列表集合的比对,来获取当前实际的需要使用的参数列表
inherited
fn2AndroidClass(Function callback, dynamic nativeClass(), String methodName) → dynamic
与 ts runtime 中的 fn2AndroidClass 功能一致 将 Dart 函数转换为 Android 回调类实例供 Android 侧使用
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
transformToPlatformConstructorArgs(List args, List<int> indices, Map<String, dynamic> typeMap, Map<String, dynamic> enumMap, Map<String, dynamic> classMap, String platformVar) List
实例化参数处理 将 pack 过后的 enum / class 转成 android / ios 平台侧的 enum / class
inherited
updateInstance(dynamic instance) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

deepPackedMapValues(Map<String, dynamic> map) → dynamic
mapMemberToConstructorParams(Map json) Map<String, dynamic>