Skip to content

Commit c19f585

Browse files
add default log level to initialize method (#616)
1 parent a03eedc commit c19f585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ClientRuntime/Logging/SDKLoggingSystem.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public class SDKLoggingSystem {
1515
factories[label] = logHandlerFactory
1616
}
1717

18-
public class func initialize() {
18+
public class func initialize(defaultLogLevel: SDKLogLevel = .info) {
1919
LoggingSystem.bootstrap { label in
2020
if let factory = factories[label] {
2121
return factory.construct(label: label)
2222
}
2323
var handler = StreamLogHandler.standardOutput(label: label)
24-
handler.logLevel = .info
24+
handler.logLevel = defaultLogLevel.toLoggerType()
2525
return handler
2626
}
2727
}

0 commit comments

Comments
 (0)