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