Motr  M0
Crate_logger

Macros

#define crlog(level, ...)   cr_log_ex(level, LOG_PREFIX, "\n", __VA_ARGS__)
 

Enumerations

enum  cr_log_level {
  CLL_ERROR = 0, CLL_WARN = 1, CLL_INFO = 2, CLL_TRACE = 3,
  CLL_DEBUG = 4, CLL_SAME = -1
}
 

Functions

void cr_log (enum cr_log_level lev, const char *fmt,...) __attribute__((format(printf
 
void void cr_log_ex (enum cr_log_level lev, const char *pre, const char *post, const char *fmt,...) __attribute__((format(printf
 
void void void cr_vlog (enum cr_log_level lev, const char *fmt, va_list args)
 
void cr_set_debug_level (enum cr_log_level level)
 

Detailed Description

Macro Definition Documentation

◆ crlog

#define crlog (   level,
  ... 
)    cr_log_ex(level, LOG_PREFIX, "\n", __VA_ARGS__)

Definition at line 55 of file logger.h.

Enumeration Type Documentation

◆ cr_log_level

Enumerator
CLL_ERROR 
CLL_WARN 
CLL_INFO 
CLL_TRACE 
CLL_DEBUG 
CLL_SAME 

Definition at line 37 of file logger.h.

Function Documentation

◆ cr_log()

void cr_log ( enum cr_log_level  lev,
const char *  fmt,
  ... 
)

◆ cr_log_ex()

void void cr_log_ex ( enum cr_log_level  lev,
const char *  pre,
const char *  post,
const char *  fmt,
  ... 
)

◆ cr_set_debug_level()

void cr_set_debug_level ( enum cr_log_level  level)

Definition at line 63 of file logger.c.

Here is the caller graph for this function:

◆ cr_vlog()

void void void cr_vlog ( enum cr_log_level  lev,
const char *  fmt,
va_list  args 
)

Definition at line 48 of file logger.c.

Here is the call graph for this function:
Here is the caller graph for this function: