project: intrument functions

Add the newly added macros to provide useful tracing
information.
This commit is contained in:
Georges Basile Stavracas Neto
2017-03-17 10:14:25 -03:00
parent 7b05abea90
commit 478db350e3
6 changed files with 315 additions and 78 deletions
+2 -1
View File
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "gcal-debug.h"
#include "gcal-log.h"
#include <unistd.h>
@@ -37,6 +37,7 @@ log_level_str (GLogLevelFlags log_level)
case G_LOG_LEVEL_MESSAGE: return " \033[1;34mMESSAGE\033[0m";
case G_LOG_LEVEL_INFO: return " \033[1;32mINFO\033[0m";
case G_LOG_LEVEL_DEBUG: return " \033[1;32mDEBUG\033[0m";
case GCAL_LOG_LEVEL_TRACE: return " \033[1;36mTRACE\033[0m";
default:
return " UNKNOWN";