Macros
log.h File Reference
#include <stdio.h>
#include <stdbool.h>
#include "auto/config.h"

Go to the source code of this file.

Macros

#define DEBUG_LOG_LEVEL   0
 
#define INFO_LOG_LEVEL   1
 
#define WARN_LOG_LEVEL   2
 
#define ERROR_LOG_LEVEL   3
 
#define DLOG(...)
 
#define DLOGN(...)
 
#define ILOG(...)
 
#define ILOGN(...)
 
#define WLOG(...)
 
#define WLOGN(...)
 
#define ELOG(...)
 
#define ELOGN(...)
 
#define MIN_LOG_LEVEL   INFO_LOG_LEVEL
 
#define LOG(level, ...)
 
#define ILOG(...)
 
#define ILOGN(...)
 
#define WLOG(...)
 
#define WLOGN(...)
 
#define ELOG(...)
 
#define ELOGN(...)
 

Macro Definition Documentation

#define DEBUG_LOG_LEVEL   0
#define DLOG (   ...)
#define DLOGN (   ...)
#define ELOG (   ...)
#define ELOG (   ...)
Value:
logmsg(ERROR_LOG_LEVEL, NULL, __func__, __LINE__, true, \
__VA_ARGS__)
return NULL
Definition: eval.c:23643
bool logmsg(int log_level, const char *context, const char *func_name, int line_num, bool eol, const char *fmt,...) FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6
#define ERROR_LOG_LEVEL
Definition: log.h:12
#define ELOGN (   ...)
#define ELOGN (   ...)
Value:
logmsg(ERROR_LOG_LEVEL, NULL, __func__, __LINE__, false, \
__VA_ARGS__)
return NULL
Definition: eval.c:23643
bool logmsg(int log_level, const char *context, const char *func_name, int line_num, bool eol, const char *fmt,...) FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6
#define ERROR_LOG_LEVEL
Definition: log.h:12
#define ERROR_LOG_LEVEL   3
#define ILOG (   ...)
#define ILOG (   ...)
Value:
logmsg(INFO_LOG_LEVEL, NULL, __func__, __LINE__, true, \
__VA_ARGS__)
return NULL
Definition: eval.c:23643
bool logmsg(int log_level, const char *context, const char *func_name, int line_num, bool eol, const char *fmt,...) FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6
#define INFO_LOG_LEVEL
Definition: log.h:10
#define ILOGN (   ...)
#define ILOGN (   ...)
Value:
logmsg(INFO_LOG_LEVEL, NULL, __func__, __LINE__, false, \
__VA_ARGS__)
return NULL
Definition: eval.c:23643
bool logmsg(int log_level, const char *context, const char *func_name, int line_num, bool eol, const char *fmt,...) FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6
#define INFO_LOG_LEVEL
Definition: log.h:10
#define INFO_LOG_LEVEL   1
#define LOG (   level,
  ... 
)
Value:
logmsg((level), NULL, __func__, __LINE__, true, \
__VA_ARGS__)
return NULL
Definition: eval.c:23643
bool logmsg(int log_level, const char *context, const char *func_name, int line_num, bool eol, const char *fmt,...) FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6
fc level
Definition: eval.c:22800
#define MIN_LOG_LEVEL   INFO_LOG_LEVEL
#define WARN_LOG_LEVEL   2
#define WLOG (   ...)
#define WLOG (   ...)
Value:
logmsg(WARN_LOG_LEVEL, NULL, __func__, __LINE__, true, \
__VA_ARGS__)
return NULL
Definition: eval.c:23643
bool logmsg(int log_level, const char *context, const char *func_name, int line_num, bool eol, const char *fmt,...) FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6
#define WARN_LOG_LEVEL
Definition: log.h:11
#define WLOGN (   ...)
#define WLOGN (   ...)
Value:
logmsg(WARN_LOG_LEVEL, NULL, __func__, __LINE__, false, \
__VA_ARGS__)
return NULL
Definition: eval.c:23643
bool logmsg(int log_level, const char *context, const char *func_name, int line_num, bool eol, const char *fmt,...) FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6
#define WARN_LOG_LEVEL
Definition: log.h:11