#define NSLog(format, ...) fprintf(stderr, "<%s : %d> %s\n", \
[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], \
__LINE__, __func__); \
(NSLog)((format), ##__VA_ARGS__); \
fprintf(stderr, "\n ------------------\n/ Hello nice Day! \\\n\\ my Macro Log ~ /\n ------------------\n \\\n \\ ^__^\n (OO)\\__________\n (__)\\ )\\/\\\n ||_______ _)\n || W |\n YYy ww ww\n");
原文:http://www.cnblogs.com/lee4519/p/4456838.html