Logging in Lock for iOS v2


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


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


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


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.