Motr  M0
logger.h File Reference
#include <stdarg.h>
#include <stdio.h>
Include dependency graph for logger.h:

Go to the source code of this file.

Macros

#define __MOTR_M0CRATE_LOGGER_H__
 
#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)
 

Macro Definition Documentation

◆ __MOTR_M0CRATE_LOGGER_H__

#define __MOTR_M0CRATE_LOGGER_H__

Definition at line 26 of file logger.h.