¡@

Home 

2014/10/15 ¤U¤È 10:08:16

iphone Programming Glossary: enlogging_level_error

What logging solutions to use while log-debugging objective-C code?

http://stackoverflow.com/questions/7294215/what-logging-solutions-to-use-while-log-debugging-objective-c-code

debug info and error and each can be enabled independently via the ENLOGGING_LEVEL_DEBUG ENLOGGING_LEVEL_INFO and ENLOGGING_LEVEL_ERROR switches below respectively. In addition ALL logging can be enabled or disabled via the ENLOGGING_ENABLED switch below... ENLOGGING_LEVEL_INFO is set on. ENHeading fmt will print if ENLOGGING_LEVEL_INFO is set on. ENError fmt will print if ENLOGGING_LEVEL_ERROR is set on. Each logging entry can optionally automatically include class method and line information by enabling the ENLOGGING_INCLUDE_CODE_LOCATION.. enable or disable logging at specific levels. #define ENLOGGING_LEVEL_DEBUG 1 #define ENLOGGING_LEVEL_INFO 1 #define ENLOGGING_LEVEL_ERROR 1 Set this switch to set whether or not to include class method and line information in the log entries. #define ENLOGGING_INCLUDE_CODE_LOCATION..