/**
* Colors of font
*/
+#ifdef SERVICE_ADAPTOR_COLOR_LOG
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_BLACK "\033[30m" /* Black */
#define FONT_COLOR_RED "\033[31m" /* Red */
#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */
+#else
+#define FONT_COLOR_RESET ""
+#define FONT_COLOR_BLACK ""
+#define FONT_COLOR_RED ""
+#define FONT_COLOR_GREEN ""
+#define FONT_COLOR_YELLOW ""
+#define FONT_COLOR_BLUE ""
+#define FONT_COLOR_PURPLE ""
+#define FONT_COLOR_CYAN ""
+#define FONT_COLOR_WHITE ""
+#define FONT_COLOR_BOLDBLACK ""
+#define FONT_COLOR_BOLDRED ""
+#define FONT_COLOR_BOLDGREEN ""
+#define FONT_COLOR_BOLDYELLOW ""
+#define FONT_COLOR_BOLDBLUE ""
+#define FONT_COLOR_BOLDPURPLE ""
+#define FONT_COLOR_BOLDCYAN ""
+#define FONT_COLOR_BOLDWHITE ""
+#endif
/**
* Gets thread ID
/**
* Colors of font
*/
+#ifdef SERVICE_ADAPTOR_COLOR_LOG
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_BLACK "\033[30m" /* Black */
#define FONT_COLOR_RED "\033[31m" /* Red */
#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */
+#else
+#define FONT_COLOR_RESET ""
+#define FONT_COLOR_BLACK ""
+#define FONT_COLOR_RED ""
+#define FONT_COLOR_GREEN ""
+#define FONT_COLOR_YELLOW ""
+#define FONT_COLOR_BLUE ""
+#define FONT_COLOR_PURPLE ""
+#define FONT_COLOR_CYAN ""
+#define FONT_COLOR_WHITE ""
+#define FONT_COLOR_BOLDBLACK ""
+#define FONT_COLOR_BOLDRED ""
+#define FONT_COLOR_BOLDGREEN ""
+#define FONT_COLOR_BOLDYELLOW ""
+#define FONT_COLOR_BOLDBLUE ""
+#define FONT_COLOR_BOLDPURPLE ""
+#define FONT_COLOR_BOLDCYAN ""
+#define FONT_COLOR_BOLDWHITE ""
+#endif
/**
* Gets thread ID
/**\r
* Colors of font\r
*/\r
-#define FONT_COLOR_RESET "\033[0m"\r
-#define FONT_COLOR_BLACK "\033[30m" /* Black */\r
-#define FONT_COLOR_RED "\033[31m" /* Red */\r
-#define FONT_COLOR_GREEN "\033[32m" /* Green */\r
-#define FONT_COLOR_YELLOW "\033[33m" /* Yellow */\r
-#define FONT_COLOR_BLUE "\033[34m" /* Blue */\r
-#define FONT_COLOR_PURPLE "\033[35m" /* Purple */\r
-#define FONT_COLOR_CYAN "\033[36m" /* Cyan */\r
-#define FONT_COLOR_WHITE "\033[37m" /* White */\r
-#define FONT_COLOR_BOLDBLACK "\033[1m\033[30m" /* Bold Black */\r
-#define FONT_COLOR_BOLDRED "\033[1m\033[31m" /* Bold Red */\r
-#define FONT_COLOR_BOLDGREEN "\033[1m\033[32m" /* Bold Green */\r
-#define FONT_COLOR_BOLDYELLOW "\033[1m\033[33m" /* Bold Yellow */\r
-#define FONT_COLOR_BOLDBLUE "\033[1m\033[34m" /* Bold Blue */\r
-#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */\r
-#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */\r
+#ifdef SERVICE_ADAPTOR_COLOR_LOG\r
+#define FONT_COLOR_RESET "\033[0m"
+#define FONT_COLOR_BLACK "\033[30m" /* Black */
+#define FONT_COLOR_RED "\033[31m" /* Red */
+#define FONT_COLOR_GREEN "\033[32m" /* Green */
+#define FONT_COLOR_YELLOW "\033[33m" /* Yellow */
+#define FONT_COLOR_BLUE "\033[34m" /* Blue */
+#define FONT_COLOR_PURPLE "\033[35m" /* Purple */
+#define FONT_COLOR_CYAN "\033[36m" /* Cyan */
+#define FONT_COLOR_WHITE "\033[37m" /* White */
+#define FONT_COLOR_BOLDBLACK "\033[1m\033[30m" /* Bold Black */
+#define FONT_COLOR_BOLDRED "\033[1m\033[31m" /* Bold Red */
+#define FONT_COLOR_BOLDGREEN "\033[1m\033[32m" /* Bold Green */
+#define FONT_COLOR_BOLDYELLOW "\033[1m\033[33m" /* Bold Yellow */
+#define FONT_COLOR_BOLDBLUE "\033[1m\033[34m" /* Bold Blue */
+#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
+#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */\r
+#else\r
+#define FONT_COLOR_RESET ""\r
+#define FONT_COLOR_BLACK ""\r
+#define FONT_COLOR_RED ""\r
+#define FONT_COLOR_GREEN ""\r
+#define FONT_COLOR_YELLOW ""\r
+#define FONT_COLOR_BLUE ""\r
+#define FONT_COLOR_PURPLE ""\r
+#define FONT_COLOR_CYAN ""\r
+#define FONT_COLOR_WHITE ""\r
+#define FONT_COLOR_BOLDBLACK ""\r
+#define FONT_COLOR_BOLDRED ""\r
+#define FONT_COLOR_BOLDGREEN ""\r
+#define FONT_COLOR_BOLDYELLOW ""\r
+#define FONT_COLOR_BOLDBLUE ""\r
+#define FONT_COLOR_BOLDPURPLE ""\r
+#define FONT_COLOR_BOLDCYAN ""\r
+#define FONT_COLOR_BOLDWHITE ""\r
+#endif\r
\r
/**\r
* Gets thread ID\r
/**
* Colors of font
*/
+#ifdef SERVICE_ADAPTOR_COLOR_LOG
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_BLACK "\033[30m" /* Black */
#define FONT_COLOR_RED "\033[31m" /* Red */
#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */
+#else
+#define FONT_COLOR_RESET ""
+#define FONT_COLOR_BLACK ""
+#define FONT_COLOR_RED ""
+#define FONT_COLOR_GREEN ""
+#define FONT_COLOR_YELLOW ""
+#define FONT_COLOR_BLUE ""
+#define FONT_COLOR_PURPLE ""
+#define FONT_COLOR_CYAN ""
+#define FONT_COLOR_WHITE ""
+#define FONT_COLOR_BOLDBLACK ""
+#define FONT_COLOR_BOLDRED ""
+#define FONT_COLOR_BOLDGREEN ""
+#define FONT_COLOR_BOLDYELLOW ""
+#define FONT_COLOR_BOLDBLUE ""
+#define FONT_COLOR_BOLDPURPLE ""
+#define FONT_COLOR_BOLDCYAN ""
+#define FONT_COLOR_BOLDWHITE ""
+#endif
/**
* Gets thread ID
/**\r
* Colors of font\r
*/\r
-#define FONT_COLOR_RESET "\033[0m"\r
-#define FONT_COLOR_BLACK "\033[30m" /* Black */\r
-#define FONT_COLOR_RED "\033[31m" /* Red */\r
-#define FONT_COLOR_GREEN "\033[32m" /* Green */\r
-#define FONT_COLOR_YELLOW "\033[33m" /* Yellow */\r
-#define FONT_COLOR_BLUE "\033[34m" /* Blue */\r
-#define FONT_COLOR_PURPLE "\033[35m" /* Purple */\r
-#define FONT_COLOR_CYAN "\033[36m" /* Cyan */\r
-#define FONT_COLOR_WHITE "\033[37m" /* White */\r
-#define FONT_COLOR_BOLDBLACK "\033[1m\033[30m" /* Bold Black */\r
-#define FONT_COLOR_BOLDRED "\033[1m\033[31m" /* Bold Red */\r
-#define FONT_COLOR_BOLDGREEN "\033[1m\033[32m" /* Bold Green */\r
-#define FONT_COLOR_BOLDYELLOW "\033[1m\033[33m" /* Bold Yellow */\r
-#define FONT_COLOR_BOLDBLUE "\033[1m\033[34m" /* Bold Blue */\r
-#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */\r
-#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */\r
+#ifdef SERVICE_ADAPTOR_COLOR_LOG\r
+#define FONT_COLOR_RESET "\033[0m"
+#define FONT_COLOR_BLACK "\033[30m" /* Black */
+#define FONT_COLOR_RED "\033[31m" /* Red */
+#define FONT_COLOR_GREEN "\033[32m" /* Green */
+#define FONT_COLOR_YELLOW "\033[33m" /* Yellow */
+#define FONT_COLOR_BLUE "\033[34m" /* Blue */
+#define FONT_COLOR_PURPLE "\033[35m" /* Purple */
+#define FONT_COLOR_CYAN "\033[36m" /* Cyan */
+#define FONT_COLOR_WHITE "\033[37m" /* White */
+#define FONT_COLOR_BOLDBLACK "\033[1m\033[30m" /* Bold Black */
+#define FONT_COLOR_BOLDRED "\033[1m\033[31m" /* Bold Red */
+#define FONT_COLOR_BOLDGREEN "\033[1m\033[32m" /* Bold Green */
+#define FONT_COLOR_BOLDYELLOW "\033[1m\033[33m" /* Bold Yellow */
+#define FONT_COLOR_BOLDBLUE "\033[1m\033[34m" /* Bold Blue */
+#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
+#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */\r
+#else\r
+#define FONT_COLOR_RESET ""\r
+#define FONT_COLOR_BLACK ""\r
+#define FONT_COLOR_RED ""\r
+#define FONT_COLOR_GREEN ""\r
+#define FONT_COLOR_YELLOW ""\r
+#define FONT_COLOR_BLUE ""\r
+#define FONT_COLOR_PURPLE ""\r
+#define FONT_COLOR_CYAN ""\r
+#define FONT_COLOR_WHITE ""\r
+#define FONT_COLOR_BOLDBLACK ""\r
+#define FONT_COLOR_BOLDRED ""\r
+#define FONT_COLOR_BOLDGREEN ""\r
+#define FONT_COLOR_BOLDYELLOW ""\r
+#define FONT_COLOR_BOLDBLUE ""\r
+#define FONT_COLOR_BOLDPURPLE ""\r
+#define FONT_COLOR_BOLDCYAN ""\r
+#define FONT_COLOR_BOLDWHITE ""\r
+#endif\r
\r
/**\r
* Gets thread ID\r
/**
* Colors of font
*/
+#ifdef SERVICE_ADAPTOR_COLOR_LOG
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_BLACK "\033[30m" /* Black */
#define FONT_COLOR_RED "\033[31m" /* Red */
#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */
+#else
+#define FONT_COLOR_RESET ""
+#define FONT_COLOR_BLACK ""
+#define FONT_COLOR_RED ""
+#define FONT_COLOR_GREEN ""
+#define FONT_COLOR_YELLOW ""
+#define FONT_COLOR_BLUE ""
+#define FONT_COLOR_PURPLE ""
+#define FONT_COLOR_CYAN ""
+#define FONT_COLOR_WHITE ""
+#define FONT_COLOR_BOLDBLACK ""
+#define FONT_COLOR_BOLDRED ""
+#define FONT_COLOR_BOLDGREEN ""
+#define FONT_COLOR_BOLDYELLOW ""
+#define FONT_COLOR_BOLDBLUE ""
+#define FONT_COLOR_BOLDPURPLE ""
+#define FONT_COLOR_BOLDCYAN ""
+#define FONT_COLOR_BOLDWHITE ""
+#endif
/**
* Gets thread ID
/**
* Colors of font
*/
+#ifdef SERVICE_ADAPTOR_COLOR_LOG
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_BLACK "\033[30m" /* Black */
#define FONT_COLOR_RED "\033[31m" /* Red */
#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */
+#else
+#define FONT_COLOR_RESET ""
+#define FONT_COLOR_BLACK ""
+#define FONT_COLOR_RED ""
+#define FONT_COLOR_GREEN ""
+#define FONT_COLOR_YELLOW ""
+#define FONT_COLOR_BLUE ""
+#define FONT_COLOR_PURPLE ""
+#define FONT_COLOR_CYAN ""
+#define FONT_COLOR_WHITE ""
+#define FONT_COLOR_BOLDBLACK ""
+#define FONT_COLOR_BOLDRED ""
+#define FONT_COLOR_BOLDGREEN ""
+#define FONT_COLOR_BOLDYELLOW ""
+#define FONT_COLOR_BOLDBLUE ""
+#define FONT_COLOR_BOLDPURPLE ""
+#define FONT_COLOR_BOLDCYAN ""
+#define FONT_COLOR_BOLDWHITE ""
+#endif
/**
* Gets thread ID
/**
* Colors of font
*/
+#ifdef SERVICE_ADAPTOR_COLOR_LOG
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_BLACK "\033[30m" /* Black */
#define FONT_COLOR_RED "\033[31m" /* Red */
#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */
+#else
+#define FONT_COLOR_RESET ""
+#define FONT_COLOR_BLACK ""
+#define FONT_COLOR_RED ""
+#define FONT_COLOR_GREEN ""
+#define FONT_COLOR_YELLOW ""
+#define FONT_COLOR_BLUE ""
+#define FONT_COLOR_PURPLE ""
+#define FONT_COLOR_CYAN ""
+#define FONT_COLOR_WHITE ""
+#define FONT_COLOR_BOLDBLACK ""
+#define FONT_COLOR_BOLDRED ""
+#define FONT_COLOR_BOLDGREEN ""
+#define FONT_COLOR_BOLDYELLOW ""
+#define FONT_COLOR_BOLDBLUE ""
+#define FONT_COLOR_BOLDPURPLE ""
+#define FONT_COLOR_BOLDCYAN ""
+#define FONT_COLOR_BOLDWHITE ""
+#endif
/**
* Gets thread ID
/**
* Colors of font
*/
+#ifdef SERVICE_ADAPTOR_COLOR_LOG
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_BLACK "\033[30m" /* Black */
#define FONT_COLOR_RED "\033[31m" /* Red */
#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */
+#else
+#define FONT_COLOR_RESET ""
+#define FONT_COLOR_BLACK ""
+#define FONT_COLOR_RED ""
+#define FONT_COLOR_GREEN ""
+#define FONT_COLOR_YELLOW ""
+#define FONT_COLOR_BLUE ""
+#define FONT_COLOR_PURPLE ""
+#define FONT_COLOR_CYAN ""
+#define FONT_COLOR_WHITE ""
+#define FONT_COLOR_BOLDBLACK ""
+#define FONT_COLOR_BOLDRED ""
+#define FONT_COLOR_BOLDGREEN ""
+#define FONT_COLOR_BOLDYELLOW ""
+#define FONT_COLOR_BOLDBLUE ""
+#define FONT_COLOR_BOLDPURPLE ""
+#define FONT_COLOR_BOLDCYAN ""
+#define FONT_COLOR_BOLDWHITE ""
+#endif
/**
* Gets thread ID
#define PRINT_LOG LSP_LOG_debug
#endif
-#define FUNC_START() do {PRINT_LOG("\033[1m\033[32m""Start >>%s>>\n""\033[0m", __FUNCTION__); } while (0)
-#define FUNC_END() do {PRINT_LOG("\033[1m\033[36m""End <<%s<<\n""\033[0m", __FUNCTION__); } while (0)
+#define FUNC_START() do {PRINT_LOG("Start >>%s>>\n", __FUNCTION__); } while (0)
+#define FUNC_END() do {PRINT_LOG("End <<%s<<\n", __FUNCTION__); } while (0)
#define PLUGIN_MESSAGE_ELEMENT_KEY_CONTEXT_ID "ctx_id"
/**
* Colors of font
*/
+#ifdef SERVICE_ADAPTOR_COLOR_LOG
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_BLACK "\033[30m" /* Black */
#define FONT_COLOR_RED "\033[31m" /* Red */
#define FONT_COLOR_BOLDPURPLE "\033[1m\033[35m" /* Bold Purple */
#define FONT_COLOR_BOLDCYAN "\033[1m\033[36m" /* Bold Cyan */
#define FONT_COLOR_BOLDWHITE "\033[1m\033[37m" /* Bold White */
+#else
+#define FONT_COLOR_RESET ""
+#define FONT_COLOR_BLACK ""
+#define FONT_COLOR_RED ""
+#define FONT_COLOR_GREEN ""
+#define FONT_COLOR_YELLOW ""
+#define FONT_COLOR_BLUE ""
+#define FONT_COLOR_PURPLE ""
+#define FONT_COLOR_CYAN ""
+#define FONT_COLOR_WHITE ""
+#define FONT_COLOR_BOLDBLACK ""
+#define FONT_COLOR_BOLDRED ""
+#define FONT_COLOR_BOLDGREEN ""
+#define FONT_COLOR_BOLDYELLOW ""
+#define FONT_COLOR_BOLDBLUE ""
+#define FONT_COLOR_BOLDPURPLE ""
+#define FONT_COLOR_BOLDCYAN ""
+#define FONT_COLOR_BOLDWHITE ""
+#endif
/**
* Gets thread ID
SECURE_LOGD(FONT_COLOR_CYAN"[%d]"fmt""FONT_COLOR_RESET, service_adaptor_gettid(), ##arg); \
} while (0)
-#define FUNC_START() do {service_adaptor_debug_func("\033[1m\033[32m""Start >>%s>>\n""\033[0m", __FUNCTION__); } while (0)
-#define FUNC_STEP() do {service_adaptor_debug_func("\033[1m\033[32m""Step logging >>%s<<\n""\033[0m", __FUNCTION__); } while (0)
-#define FUNC_END() do {service_adaptor_debug_func("\033[1m\033[36m""End <<%s<<\n""\033[0m", __FUNCTION__); } while (0)
+#define FUNC_START() do {service_adaptor_debug_func("Start >>%s>>\n", __FUNCTION__); } while (0)
+#define FUNC_STEP() do {service_adaptor_debug_func("Step logging >>%s<<\n", __FUNCTION__); } while (0)
+#define FUNC_END() do {service_adaptor_debug_func("End <<%s<<\n", __FUNCTION__); } while (0)
#ifdef __cplusplus
}