TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | BSD |
ReleasedLast Release | Jul 2018 |
Maintained by YiJianJun.
CaptureLogger is modified by BugshotKit . All iOS versions are supported
simple usage:
in Podfile file
pod 'CaptureLogger', :configurations => ['Debug']
--
in .pch file
#if DEBUG
# import "CLCaptureLogger.h"
# define NSLog(format,...) CLLog(format,##__VA_ARGS__)
[BugshotKit addLogMessage:[NSString stringWithFormat:@"<%@,%d>:%@\n",[[NSString stringWithUTF8String:__FILE__] lastPathComponent],__LINE__,[NSString stringWithFormat:format, ## __VA_ARGS__]]]
#else
# define NSLog(format, ...)
#endif
otherside you can use CLLog instand of NSLog.
-- in AppDelegate.m file
#if DEBUG
# import "CLCaptureLogger.h"
# import "CLBugshotManager.h"
#endif
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
...
#if DEBUG
[CLCaptureLogger captureLoggerGestureEnable];
[[CLBugshotManager sharedManager] setDisplayConsoleTextInLogViewer:YES];
#endif
...
}