¡@

Home 

2014/10/15 ¤U¤È 10:15:06

iphone Programming Glossary: trc_level

Best Practices for Error Logging and/or reporting for iPhone

http://stackoverflow.com/questions/1667994/best-practices-for-error-logging-and-or-reporting-for-iphone

bug or unexpected condition 2009 09 11 14 22 48.073 MyApp 3122 207 EXIT MyClass myMethod Our trace definitions #ifndef TRC_LEVEL #if TARGET_IPHONE_SIMULATOR 0 #define TRC_LEVEL 0 #else #define TRC_LEVEL 5 #endif #endif Entry exit trace macros .. MyApp 3122 207 EXIT MyClass myMethod Our trace definitions #ifndef TRC_LEVEL #if TARGET_IPHONE_SIMULATOR 0 #define TRC_LEVEL 0 #else #define TRC_LEVEL 5 #endif #endif Entry exit trace macros #if TRC_LEVEL 0 #define TRC_ENTRY NSLog @.. myMethod Our trace definitions #ifndef TRC_LEVEL #if TARGET_IPHONE_SIMULATOR 0 #define TRC_LEVEL 0 #else #define TRC_LEVEL 5 #endif #endif Entry exit trace macros #if TRC_LEVEL 0 #define TRC_ENTRY NSLog @ ENTRY s d __PRETTY_FUNCTION__..