log_module.h File Reference

log_module header More...

Detailed Description

log_module header

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file log_module.h.

#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include "log.h"
+ Include dependency graph for log_module.h:

Go to the source code of this file.

Macros

#define LOG_ERROR_ANSI_COLOR_CODE   ("\033[1;31m")
 Default ANSI color escape code for error logs. More...
 
#define LOG_WARNING_ANSI_COLOR_CODE   ("\033[1;33m")
 Default ANSI color escape code for warning logs. More...
 
#define LOG_INFO_ANSI_COLOR_CODE   ("\033[1m")
 Default ANSI color escape code for info logs. More...
 
#define LOG_DEBUG_ANSI_COLOR_CODE   ("\033[0;32m")
 Default ANSI color escape code for debug logs. More...
 
#define LOG_RESET_ANSI_COLOR_CODE   ("\033[0m")
 ANSI color escape code used for resetting color.
 

Functions

static void log_write (unsigned level, const char *format,...)
 log_write overridden function for colored output More...
 

Variables

static const char *const _ansi_codes []
 ANSI color escape codes array. More...