File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 11import UIKit
22import CoreData
3+ import CocoaLumberjack
4+ import WordPressKit
5+ import WordPressAuthenticator
36
47
58// MARK: - Woo's App Delegate!
@@ -31,6 +34,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3134
3235 // Setup Components
3336 setupAuthenticationManager ( )
37+ setupLogLevel ( . verbose)
3438
3539 // Display the Authentication UI
3640 displayAuthenticatorIfNeeded ( )
@@ -99,6 +103,14 @@ private extension AppDelegate {
99103 func setupAuthenticationManager( ) {
100104 authenticationManager. initialize ( )
101105 }
106+
107+ func setupLogLevel( _ level: DDLogLevel ) {
108+ let rawLevel = Int32 ( level. rawValue)
109+
110+ WPSharedSetLoggingLevel ( rawLevel)
111+ WPAuthenticatorSetLoggingLevel ( rawLevel)
112+ WPKitSetLoggingLevel ( rawLevel)
113+ }
102114}
103115
104116
You can’t perform that action at this time.
0 commit comments