测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最后发布 | 2016年4月 |
由Ivan Sanchez维护。
依赖 | |
CocoaAsyncSocket | ~> 7.4 |
CocoaLumberjack | ~> 2.0 |
为 log.io 提供的 CocoaLumberjack 日志记录器。
只需克隆此存储库,并将 Classes 目录中的文件添加到您的项目中。
只需将记录器添加到 CocoaLumberjack
[DDLog addLogger:[LogIOLogger sharedInstance]];
然后,配置您的节点、流和目的地服务器
NSString *deviceName = [[UIDevice currentDevice] name];
NSString *appName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
[LogIOLogger configureNode:deviceName stream:appName];
[LogIOLogger connectTo:@"localhost" port:28777];