想知道工程名中的数组代表什么意思?
2013-04-24 12:00:00:000 ProjectName[xxxxx:xxx] Some Log Text
[xxxxx:xxx]这里有一些数字。
想知道工程名中的数组代表什么意思?
2013-04-24 12:00:00:000 ProjectName[xxxxx:xxx] Some Log Text
[xxxxx:xxx]这里有一些数字。
第一个是PID(线程ID) 第二个是通过thread ID 获取的mach port
运行这段代码你就懂了
NSLog(@"%@",[NSString stringWithFormat:@"[%ld:%lx]", (long) getpid(), (long) pthread_mach_thread_np(pthread_self())]);