Skip to content

Commit 41a76f9

Browse files
authored
chore: add proper import for logging (#369)
1 parent da4ad1b commit 41a76f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,14 @@ Try some other calls? Help us better understand what you think the most critica
138138
## Logging
139139
The AWS SDK for Swift uses SwiftLog for high performant logging. Many of our calls are issued to the `debug` level of output, which are disabled in the console by default. To see debug output to your console, you can add the following code to your application in a place where you know that the code will be called once and only once:
140140
```swift
141+
import ClientRuntime
141142
SDKLoggingSystem.initialize(logLevel: .debug)
142143
```
143144

144145
Alternatively, if you need finer grain control of instances of SwiftLog, you can call `SDKLoggingSystem.add` to control specific instances of the log handler. For example:
145146
```swift
147+
import ClientRuntime
148+
146149
SDKLoggingSystem.add(logHandlerFactory: S3ClientLogHandlerFactory(logLevel: .debug))
147150
SDKLoggingSystem.add(logHandlerFactory: CRTClientEngineLogHandlerFactory(logLevel: .info))
148151
SDKLoggingSystem.initialize()

0 commit comments

Comments
 (0)