setLog static method

Future<void> setLog(
  1. bool isLog, {
  2. String? verboseFilePath,
})

Controls whether the plugin should log messages to the console during operation.

The isLog parameter is used to enable or disable logging. The verboseFilePath parameter is used to specify the path to record verbose logs.

Implementation

static Future<void> setLog(
  bool isLog, {
  String? verboseFilePath,
}) async {
  final isVerbose = isLog && verboseFilePath != null;
  await plugin.setLog(isLog);
  if (verboseFilePath != null) {
    plugin.setVerbose(isVerbose, verboseFilePath);
  }
}