2 Star 5 Fork 1

SeanHuang1661 / FYLog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
SeanHuang1661 提交于 2015-12-04 10:53 . Update README.md

#FYLog

  • 可以打印字符串、数组、对象等。使用方式和NSLog一样。

  • 打印的结果,可以显示类名、行数、方法名。

  • 可以配置打开关闭。FYLog.h中,FYLogSwitch 0关闭\1打开

  • 使用方式:

NSMutableArray *arrs = [[NSMutableArray alloc] initWithCapacity:3];
[arrs addObject:@"str1"];
[arrs addObject:@{
    @"dic1": @"test1",
    @"dic2": @"test2"
}];
[arrs addObject:@(2)];

FYLog(@"---test1---%@", @"test1");
FYLog(@"---test2---%@", @"test2");
FYLog(@"---test3---%@", arrs);
  • 打印结果
========================FYLog======================
<ViewController.m : 34> -[ViewController viewDidLoad]
2015-12-04 10:05:25.277 TestFYLog[8581:1273684] ---test1---test1
===================================================
========================FYLog======================
<ViewController.m : 35> -[ViewController viewDidLoad]
2015-12-04 10:05:25.278 TestFYLog[8581:1273684] ---test2---test2
===================================================
========================FYLog======================
<ViewController.m : 36> -[ViewController viewDidLoad]
2015-12-04 10:05:25.278 TestFYLog[8581:1273684] ---test3---(
    str1,
        {
            dic1 = test1;
            dic2 = test2;
        },
        2
)
===================================================
Objective-C
1
https://gitee.com/seanhuang1661/FYLog.git
git@gitee.com:seanhuang1661/FYLog.git
seanhuang1661
FYLog
FYLog
master

搜索帮助