// // CCLog.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCLog.h" @implementation CCLog + (void)logDetail:(NSString *)str { NSLog(@"filename: %s line: %d %@", __FILE__, __LINE__, (str)); } @end
googlecode链接地址(会有更新):http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCLog.m
github地址:https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCLog.m
本文介绍了一个名为CCLog的日志记录工具的实现细节。该工具通过Objective-C编写,能够记录文件名及行号信息,方便开发者进行调试。文中提供了CCLog的具体实现代码,并附上了Google Code及GitHub上的源码链接。
85

被折叠的 条评论
为什么被折叠?



