What are the numbers in the square brackets in NSLog() output?
问题 What is the stuff between the [] in the log message below? I get this in my iPhone app, and I have no idea where the message is coming from. My first guess would be a line number, but which file would it be in? 2010-10-19 08:56:12.006 Encore[376:6907] 回答1: The first number is the process ID, the second is the logging thread's Mach port. A desktop example: 2010-10-19 17:37:13.189 nc_init[28617:a0f] nc <CFNotificationCenter 0x10010d170 [0x7fff70d96f20]> - default <CFNotificationCenter