A Log system for iOS.Support print, record and review logs.
###CCLogSystem
CCLogSystem provide an iOS Log System. We can use to replace NSLog in our project.And it also provide recording logs to the local file and review or email logs in our app.
中文版本请戳: Chun Tips
####Main Features
####Installation
CCLogSytem is available as a CocoaPod.
pod 'CCLogSystem'
You can also simply copy all the source files located inside CCLogSystem/CCLogSystem/* into your iOS project.
####Example
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
[CCLogSystem setupDefaultLogConfigure];
}
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[CCLogSystem setupDefaultLogConfigure];
CC_LOG(@"%@", application);
// print: 2014-10-31 15:28:41.038 . <NSThread: 0x174063880>{number = 1, name = main} AppDelegate.m at 24 (-[AppDelegate application:willFinishLaunchingWithOptions:]): <UIApplication: 0x146e01cb0>
}
CC_LOG_VALUE(application);
id applicationTemp = application;
CC_LOG_VALUE(applicationTemp);
CC_LOG_VALUE(self.window);
CC_LOG_VALUE(self.window.frame);
CC_LOG_VALUE(self.window.transform);
Class applicationClass = NSClassFromString(@"UIApplication");
CC_LOG_VALUE(applicationClass);
SEL selector = @selector(application:continueUserActivity:restorationHandler:);
CC_LOG_VALUE(selector);
NSInteger test = 100;
CC_LOG_VALUE(test);
float test2 = 100.000001;
CC_LOG_VALUE(test2);
char test3 = 'a';
CC_LOG_VALUE(test3);
TestBlock testBlock = ^{
};
CC_LOG_VALUE(testBlock);
[CCLogSystem activeDeveloperUI];