Client.setLogLevel()

DESCRIPTION

Set the SDK log level.

This needs to be set as early as possible to ensure modules are initialised with the correct log settings.

The default level is info.

Lower case string for the desired log level.

Allowed strings:

Each severity level includes all the less severe levels.

DECLARATION

    public func setLogLevel(level: String) throws 

PARAMETERS

level:
The log level: error, warn, info, debug or trace

ERRORS

Throws the following errors:

NabtoEdgeClientError.INVALID_ARGUMENT:
if invalid level

RETURN VALUES

None.

EXAMPLES

None.