直接上代码
+ (void)mlog:(NSString *)formatStr, ...
{
va_list arglist;
va_start(arglist, formatStr);
NSString *outStr = [[NSString alloc] initWithFormat:formatStr arguments:arglist];
va_end(arglist);
NSLog(@"%@",outStr);
}