logger property

DescopeLogger? logger
getter/setter pair

An optional object to handle logging in the Descope SDK.

The default value of this property is null and thus logging will be completely disabled. During development if you encounter any issues you can create an instance of the DescopeLogger class to enable logging.

Descope.config = DescopeConfig(projectId: "...", logger: DescopeLogger())

If your application uses some logging framework or third party service you can forward the Descope SDK log messages to it by creating a new subclass of DescopeLogger and overriding the DescopeLogger.output method.

Implementation

DescopeLogger? logger;