/** ******************************************************************************* * @file etk/Debug.h * @brief Ewol Tool Kit : log implementation * @author Edouard DUPIN * @date 08/06/2010 * @par Project * Ewol TK * * @par Copyright * Copyright 2011 Edouard DUPIN, all right reserved * * This software is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY. * * Licence summary : * You can modify and redistribute the sources code and binaries. * You can send me the bug-fix * * Term of the licence in in the file licence.txt. * ******************************************************************************* */ #ifndef __ETK_DEBUG_H__ #define __ETK_DEBUG_H__ #include #include // Log Message System For EDN void TOOLS_DisplayFuncName(int32_t ligne, const char* className, const char* funcName, const char* libName); void TOOLS_DisplayTime(void); #undef __class__ #define __class__ (NULL) extern etk::logLevel_te g_requestedLevel; void GeneralDebugSetLevel(etk::logLevel_te ccc); #define ETK_DBG_COMMON(libName, info, data) do { \ if (info <= g_requestedLevel) { \ etk::cout << etk::cstart << info; \ TOOLS_DisplayTime(); \ TOOLS_DisplayFuncName(__LINE__, __class__, __func__, libName); \ etk::cout << data; \ etk::cout <