Skip to content

Commit 974b90e

Browse files
authored
Added dependency update for Swift 5.2 (#173)
1 parent cb77380 commit 974b90e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,17 @@ If you have a server-side Swift application, or maybe a cross-platform (for exam
2121
and to your application/library target, add `"Logging"` to your `dependencies`, e.g. like this:
2222

2323
```swift
24+
// Target syntax for Swift up to version 5.1
2425
.target(name: "BestExampleApp", dependencies: ["Logging"]),
26+
27+
// Target for Swift 5.2
28+
.target(name: "BestExampleApp", dependencies: [
29+
.product(name: "Logging", package: "swift-log")
30+
],
31+
2532
```
2633

34+
2735
#### Let's log
2836

2937
```swift

0 commit comments

Comments
 (0)