这个库是为简单的统一记录成功和失败事件而创建的。
使用这些工具中的任何一个都是可选的,并且可以调整
1) 将一行添加到您的 proj-Prefix.pch 文件中
#import "Logger.h"
2) 使用以下命令初始化模块(例如在 AppDelegate 中)
initWithConsoleReporting: (BOOL)consoleReporting
writeTimeInConsole: (BOOL)writeTimeInConsole
debugDictionary: (NSDictionary*)debugDictionary
flurryApiKey: (NSString*)flurryApiKey
flurryUserID: (NSString*)flurryUserID
3) 使用以下这些函数之一来记录事件,其中包含(可选)NSString 或 NSDictionary 中的调试信息
log: (eventType)type withDebugString: (NSString*)format, ...;
log: (eventType)type withDebugDict: (NSDictionary*)debugDict;
log: (eventType)type
withTitle: (NSString*)title
message: (NSString*)message
alert: (BOOL)isAlert
debugString: (NSString*)format, ...;
log: (eventType)type
withTitle: (NSString*)title
message: (NSString*)message
alert: (BOOL)isAlert
debugDict: (NSDictionary*)debugDict;
iOS 4+ 与 ARC(包括支持 iOS 8.1.1)
Victor, [email prot
日志记录器可在 MIT 许可证下获得。有关更多信息,请参阅 LICENSE 文件。