setLogLevel method
- TrustPinLogLevel level
Sets the log level for this instance.
Use TrustPinLogLevel.error or TrustPinLogLevel.none in production. Set the level before setup for complete coverage.
Implementation
Future<void> setLogLevel(TrustPinLogLevel level) async {
try {
await TrustPinSDKPlatform.instance
.setLogLevel(level.value, instanceId: _instanceId);
} catch (e) {
throw TrustPinException.fromPlatformException(e);
}
}