We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f5b319 commit 94691d9Copy full SHA for 94691d9
OptimizelySDK/Customization/Protocols/OPTLogger.swift
@@ -16,7 +16,6 @@
16
17
import Foundation
18
19
-
20
/**
21
* Any logger must implement these following methods.
22
*/
@@ -70,3 +69,15 @@ extension OPTLogger {
70
69
return message
71
}
72
+
73
+@objc public class OPTLoggerFactory:NSObject {
74
+ func getLogger() -> OPTLogger {
75
+ if let logger = HandlerRegistryService.shared.injectComponent(service: OPTLogger.self) as? OPTLogger {
76
+ return logger
77
+ }
78
79
+ return DefaultLogger()
80
81
+}
82
83
0 commit comments