|
|
@@ -6,7 +6,8 @@ CocoaLumberjack
|
|
|
===============
|
|
|
[](https://github.com/CocoaLumberjack/CocoaLumberjack/releases/latest)
|
|
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
|
-[](https://cocoadocs.org/docsets/CocoaLumberjack/)
|
|
|
+[](https://swiftpackageindex.com/CocoaLumberjack/CocoaLumberjack)
|
|
|
+[](https://swiftpackageindex.com/CocoaLumberjack/CocoaLumberjack)
|
|
|
[](https://github.com/Carthage/Carthage)
|
|
|

|
|
|
[](https://codecov.io/gh/CocoaLumberjack/CocoaLumberjack)
|
|
|
@@ -17,9 +18,22 @@ CocoaLumberjack
|
|
|
|
|
|
## How to get started
|
|
|
|
|
|
-First, install CocoaLumberjack via [CocoaPods](https://cocoapods.org), [Carthage](https://github.com/Carthage/Carthage), [Swift Package Manager](https://swift.org/package-manager/) or manually.
|
|
|
+First, install CocoaLumberjack via [Swift Package Manager](https://swift.org/package-manager/), [CocoaPods](https://cocoapods.org), [Carthage](https://github.com/Carthage/Carthage) or manually.
|
|
|
Then use `DDOSLogger` for iOS 10 and later, or `DDTTYLogger` and `DDASLLogger` for earlier versions to begin logging messages.
|
|
|
|
|
|
+
|
|
|
+### Swift Package Manager
|
|
|
+
|
|
|
+As of CocoaLumberjack 3.6.0, you can use the Swift Package Manager as integration method.
|
|
|
+If you want to use the Swift Package Manager as integration method, either use Xcode to add the package dependency or add the following dependency to your Package.swift:
|
|
|
+
|
|
|
+```swift
|
|
|
+.package(url: "https://github.com/CocoaLumberjack/CocoaLumberjack", from: "3.8.0"),
|
|
|
+```
|
|
|
+
|
|
|
+Note that you may need to add both products, `CocoaLumberjack` and `CocoaLumberjackSwift` to your target since SPM sometimes fails to detect that `CocoaLumberjackSwift` depends on `CocoaLumberjack`.
|
|
|
+
|
|
|
+
|
|
|
### CocoaPods
|
|
|
|
|
|
```ruby
|
|
|
@@ -53,18 +67,6 @@ Cartfile
|
|
|
github "CocoaLumberjack/CocoaLumberjack"
|
|
|
```
|
|
|
|
|
|
-
|
|
|
-### Swift Package Manager
|
|
|
-
|
|
|
-As of CocoaLumberjack 3.6.0, you can use the Swift Package Manager as integration method.
|
|
|
-If you want to use the Swift Package Manager as integration method, either use Xcode to add the package dependency or add the following dependency to your Package.swift:
|
|
|
-
|
|
|
-```swift
|
|
|
-.package(url: "https://github.com/CocoaLumberjack/CocoaLumberjack.git", from: "3.8.0"),
|
|
|
-```
|
|
|
-
|
|
|
-Note that you may need to add both products, `CocoaLumberjack` and `CocoaLumberjackSwift` to your target since SPM sometimes fails to detect that `CocoaLumberjackSwift` depends on `CocoaLumberjack`.
|
|
|
-
|
|
|
### Install manually
|
|
|
|
|
|
If you want to install CocoaLumberjack manually, read the [manual installation](Documentation/GettingStarted.md#manual-installation) guide for more information.
|