MCLogger
MCLogger is a fast & simple, yet powerful & flexible logging framework for Mac and iOS base on CocoaLumberJack.
安装
MCLogger is available through CocoaPods. To install it, simply add the following line to your Podfile:
platform :ios, '9.0'
pod 'MCLogger'
使用
#import <MCLogger/MCLogger.h>
- (void)testMethod {
[DDLog addLogger:[DDTTYLogger sharedInstance]];
NSString *appKey = [NSBundle.mainBundle.infoDictionary objectForKey:@"CFBundleIdentifier"];
[MCLogger.sharedInstance startWithAppKey:appKey domain:[NSURL URLWithString:@"wss://yourdomain/log"]];
}
License
MCLogger is available under the MIT license. See the LICENSE file for more info.