getAllLogsAsString method
Returns all log entries generated for this session as a concatenated
string. If there are asynchronous logs that are not delivered yet,
this method waits for them until waitTimeout
.
Implementation
@override
Future<String?> getAllLogsAsString([int? waitTimeout]) async {
try {
return _platform.abstractSessionGetAllLogsAsString(
getSessionId(),
waitTimeout,
);
} on PlatformException catch (e, stack) {
debugPrint("Plugin getAllLogsAsString error: ${e.message}");
return Future.error("getAllLogsAsString failed.", stack);
}
}