logging method

Future<void> logging(
  1. String content,
  2. FTLogStatus status, {
  3. Map<String, Object?>? property,
  4. bool? isSilence,
})

Output log content Log content status Log status property Additional property parameters (optional) isSilence

Implementation

Future<void> logging(String content, FTLogStatus status,
    {Map<String, Object?>? property, bool? isSilence}) async {
  Map<String, Object?> mergedProperties =
      _mergeWithGlobalProperties(property);
  Map<String, dynamic> map = {};
  map["content"] = content;
  map["status"] = status.index;
  map["isSilence"] = isSilence;
  map["property"] = mergedProperties;
  await channel.invokeMethod(methodLogging, map);
}