display_log_module.ii
1 #pragma once 2 3 #define NRF_LOG_MODULE_NAME appdisplay 4 #if APPDISPLAY_LOG_ENABLED 5 #define NRF_LOG_LEVEL APPDISPLAY_LOG_LEVEL 6 #define NRF_LOG_INFO_COLOR APPDISPLAY_INFO_COLOR 7 #define NRF_LOG_DEBUG_COLOR APPDISPLAY_DEBUG_COLOR 8 #else //APPDISPLAY_LOG_ENABLED 9 #define NRF_LOG_LEVEL 0 10 #endif //APPDISPLAY_LOG_ENABLED 11 #include "nrf_log.h" 12 13 #if defined(APPDISPLAY_VERBOSE_LOGGING) && (APPDISPLAY_VERBOSE_LOGGING == 1) 14 #define NRF_LOG_VERBOSE(...) NRF_LOG_DEBUG(__VA_ARGS__) 15 #define NRF_HEXDUMP_VERBOSE(p_data, len) NRF_LOG_HEXDUMP_DEBUG(p_data, len) 16 #else 17 #define NRF_LOG_VERBOSE(...) 18 #define NRF_HEXDUMP_VERBOSE(p_data, len) do { UNUSED_VARIABLE(p_data); UNUSED_VARIABLE(len); } while(0) 19 #endif // APPDISPLAY_VERBOSE_LOGGING