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 a03eedc commit c19f585Copy full SHA for c19f585
Sources/ClientRuntime/Logging/SDKLoggingSystem.swift
@@ -15,13 +15,13 @@ public class SDKLoggingSystem {
15
factories[label] = logHandlerFactory
16
}
17
18
- public class func initialize() {
+ public class func initialize(defaultLogLevel: SDKLogLevel = .info) {
19
LoggingSystem.bootstrap { label in
20
if let factory = factories[label] {
21
return factory.construct(label: label)
22
23
var handler = StreamLogHandler.standardOutput(label: label)
24
- handler.logLevel = .info
+ handler.logLevel = defaultLogLevel.toLoggerType()
25
return handler
26
27
0 commit comments