Docs

Authorization Code Flow

Logging in Lock for iOS v2

Versionv2

Refresh TokenLock provides options to easily turn on and off logging capabilities, as well as adjust other logging related settings.

How it works

logLevel

By default this is .off, Syslog logging levels are supported.

How to implement it

logHttpRequest

This option allows you to choose whether or not to log Auth0.swift API requests. By default this is false.

Keep reading

loggerOutput

You can specify a logger output handler, by default this uses the print statement.

In the code above, the loggerOutput has been set to use CleanroomLogger. This can typically be achieved by implementing the loggerOutput protocol. You can of course use your favorite logger library. Below is an example of usage handling logger output with CleanroomLogger.