File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
src/content/docs/developer-tools/sdks/native Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,38 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
9999 func application (...) {
100100 ...
101101 // The Kinde authentication service must be configured before use
102- KindeSDKAPI.configure (logger : Logger ())
102+ KindeSDKAPI.configure (Logger ())
103103 ...
104104 }
105105 ...
106106}
107107```
108108
109+ ## Custom Logger (Optional)
110+
111+ You can use your own Custom Logger as well by extending ` LoggerProtocol ` .
112+
113+ ` CustomLogger.swift `
114+
115+ ``` swift
116+ ...
117+ import os .log
118+ import KindeSDK
119+ ...
120+ struct CustomLogger : LoggerProtocol {
121+ .....
122+ .....
123+
124+ func log (_ message : String ) {
125+ print (" [INFO]: \( message ) " )
126+ }
127+
128+ func log (error : Error ) {
129+ print (" [ERROR]: \( error.localizedDescription ) " )
130+ }
131+ }
132+ ```
133+
109134## Login and register
110135
111136The Kinde client provides methods for an easy to implement login / register flow.
You can’t perform that action at this time.
0 commit comments