A standard interface for message logging.
Working on various projects and frameworks you may need to use a separation betwen logic that generates messages and the logic that reports them. Logging provides a standard interface which could be easily extended or subclassed by any already existing logger.
Each message could provide file name, function name, line number and assigned a severity. The list of severities is inspired by RFC 5424.
- iOS 9.0+ / Mac OS X 10.10+ / watchOS 2.0+ / tvOS 9.0+
- Swift 3.2 / 4.0+
- Xcode 9.0+
- Carthage 0.18+ (if you use)
- CocoaPods 1.1.1+ (if you use)
Installation using Carthage requires deployment target of iOS 8.0 or newer.
Add the following line to your Cartfile:
github "martinbanas/logging" ~> "4.0.0"
Make sure to setup the carthage copy-frameworks Run Script build phase for Carthage dependencies in your project.
To install logging with CocoaPods, add the following lines to your Podfile.
platform :ios, '9.0' # or platform :tvos, or platform :osx, or platform :watchos
use_frameworks!
pod 'Logging', :git => 'https://github.com/martinbanas/logging.git', :tag => '4.0.0'
MIT license. See the LICENSE file for details.