NSLog 打印出方法函数,行数,内容

#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr," function:%s line:%d content:%s ", __FUNCTION__, __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

原文地址:https://www.cnblogs.com/tangyuanby2/p/7677449.html