Simple log formatter for using CocoaLimberjack library
Set log formatter property of DDASLLogger and DDTTYLogger singletones to ATRLogFormatter instance
ATRLogFormatter *formatter = [[ATRLogFormatter alloc] init];
[DDASLLogger sharedInstance].logFormatter = formatter;
[DDTTYLogger sharedInstance].logFormatter = formatter;
let formatter = ATRLogFormatter()
DDASLLogger.sharedInstance().logFormatter = formatter
DDTTYLogger.sharedInstance().logFormatter = formatter
ATRLogFormatter is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ATRLogFormatter"
To integrate ATRLogFormatter into your Xcode project using Carthage, specify it in your Cartfile:
github "alphatroya/ATRLogFormatter"
Run carthage update
to build the framework and drag the built ATRLogFormatter.framework and CocoaLumberjackSwift.framework into your Xcode project.
Alexey Korolev, alphatroya@gmail.com
ATRLogFormatter is available under the MIT license. See the LICENSE file for more info.