setV2LoggingLevel method
Sets the logging level.
Requires permission to access the SetV2LoggingLevel action.
May throw InternalException.
May throw InvalidRequestException.
May throw LimitExceededException.
May throw NotConfiguredException.
May throw ServiceUnavailableException.
Parameter logLevel :
The log level.
Parameter logTarget :
The log target.
Implementation
Future<void> setV2LoggingLevel({
required LogLevel logLevel,
required LogTarget logTarget,
}) async {
final $payload = <String, dynamic>{
'logLevel': logLevel.value,
'logTarget': logTarget,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v2LoggingLevel',
exceptionFnMap: _exceptionFns,
);
}