如下资料是关于objective c一个更好的日志方案的内容。
#ifndef PRODUCTION
#define Log(format, ...)
NSLog(@"(%s)[%s:%d] %s", __FUNCTION__,__FILE__,__LINE__, [[NSString stringWithFormat:format, ##__VA_ARGS__] UTF8String])
#else
#endif
如下资料是关于objective c一个更好的日志方案的内容。
#ifndef PRODUCTION
#define Log(format, ...)
NSLog(@"(%s)[%s:%d] %s", __FUNCTION__,__FILE__,__LINE__, [[NSString stringWithFormat:format, ##__VA_ARGS__] UTF8String])
#else
#endif