A Swift dLog implementation.
To be quite honest, this is so simple that it's probably easier to just copy and paste the code directly into your project, instead of adding yet another dependency to it.
You can find the gist here.
- iOS 9+
- watchOS 3+
- tvOS 9+
- macOS 10.11+
- Swift 3.3+
func someFunction() {
dLog("This message will appear on your console when you're in debug mode")
aLog("This message will always appear on your console")
}
BLLogger works by using the DEBUG
flag. As of Xcode 8 and above, no configuration is necessary for BLLogger to work.
pod 'BLLogger', '~> 1.0'
Then import BLLogger
where needed.
github "BellAppLab/BLLogger" ~> 1.0
Then import BLLogger
where needed.
dependencies: [
.package(url: "https://github.com/BellAppLab/BLLogger", from: "1.0")
]
Then import BLLogger
where needed.
cd toYourProjectsFolder
git submodule add -b submodule --name BLLogger https://github.com/BellAppLab/BLLogger.git
Then drag the BLLogger
folder into your Xcode project.
Bell App Lab, apps@bellapplab.com
Logo image by Ronald Cortez from The Noun Project
BLLogger is available under the MIT license. See the LICENSE file for more info.