getLogs method

Future<List<String>> getLogs()

Retrieves V2Ray logs from the system logcat. Returns a Future that completes with a List of log lines. On Android, this fetches logs filtered by V2Ray related tags. On non-Android platforms, returns an empty list.

Implementation

Future<List<String>> getLogs() async {
  if (Platform.isAndroid) {
    return FlutterV2rayPlatform.instance.getLogs();
  }
  return [];
}