1 Star 0 Fork 1

JackSun / KKLog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 975 Bytes
一键复制 编辑 原始数据 按行查看 历史
JackSun 提交于 2015-04-09 23:20 . 233 写错啦。。。

KKLog

A Open source Log System for OC

Requirements

KKLog works on any iOS version. Only ARC.

Adding KKLog to your project

Include KKLog wherever you need it with #import "KKLog.h" .

Source files

Alternatively you can directly add the KKLog.h& KKLog.m source files to your project.

OR USE POD

pod 'KKLog'

Usage

1.Startup

void uncaughtExceptionHandler(NSException *exception)
{
    [KKLog logCrash:exception];
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

// signExceptionHandler 
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);

// install KKlog
[KKLog logIntial];
// set logLevel
[KKLog setLogLevel:LOGLEVELD];

2.U can use This method

[KKLog logI:@"info"];
[KKLog logE:@"error"];
[KKLog logW:@"worring"];...

KKLogI(@"info");
KKLogD(@"DDDD");...

3.Have fun!

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/coneboy/KKLog.git
git@gitee.com:coneboy/KKLog.git
coneboy
KKLog
KKLog
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891