setLogPath static method

Future<void> setLogPath(
  1. String logPath,
  2. int maxPartFileSizeInKB
)

设置Log路径

logPath Log路径

maxPartFileSizeInKB 每个分片最大大小。最终日志总体积是 5*最大分片大小

Implementation

static Future<void> setLogPath(
  String logPath,
  int maxPartFileSizeInKB,
) async {
  Map params = {
    "logPath": logPath,
    "maxPartFileSizeInKB": maxPartFileSizeInKB.toString(),
  };
  return _liveBaseMethodChannel.invokeMethod(
    'setLogPath',
    wrapArgs(arg: params),
  );
}