#define DebugLogEnable 1
#if DebugLogEnable
#define macro_to_str1(x) #x
#define macro_to_str(x) macro_to_str1(x)
#define DebugString(format,...) ([NSString stringWithFormat: @" %s %@ ", __FUNCTION__, [NSString stringWithFormat:format, ##__VA_ARGS__]])
#define xsyLog(format, ...) NSLog(@"%@",DebugString(format, ##__VA_ARGS__))
#define xsyLogError(error) xsyLog(@"error:%@",error)
#define xsyLogMethod() xsyLog(@"")
#else
#define DebugString(format,...) @""
#define xsyLog(format, ...)
#define xsyLogError(error)
#define xsyLogMethod()
#define NSLog(...)
#endif