43#ifndef _API_LOG_LOG_H_
44#define _API_LOG_LOG_H_
65 LOG_LEVEL_DEBUG = 0x00,
66 LOG_LEVEL_INFO = 0x01,
67 LOG_LEVEL_WARNING = 0x02,
68 LOG_LEVEL_ERROR = 0x03,
69 LOG_LEVEL_FATAL = 0x04
92#define LOG_MAP_USB_UART(cfg) cfg.level = LOG_LEVEL_DEBUG;
98#define LOG_MAP_MIKROBUS(cfg, mikrobus) cfg.level = LOG_LEVEL_DEBUG;
209void log_log (
log_t *log,
char * prefix,
const code
char * __generic_ptr f, ... );
void log_warning(log_t *log, const code char *__generic_ptr f,...)
WARNING printf function.
void log_printf(log_t *log, const code char *__generic_ptr f,...)
Printf function.
void log_error(log_t *log, const code char *__generic_ptr f,...)
ERROR printf function.
void log_debug(log_t *log, const code char *__generic_ptr f,...)
DEBUG printf function.
void log_log(log_t *log, char *prefix, const code char *__generic_ptr f,...)
Printf function with a variable prefix.
void log_init(log_t *log, log_cfg_t *cfg)
Initializes LOG module.
log_level_t
Log level values.
Definition log.h:66
void log_info(log_t *log, const code char *__generic_ptr f,...)
INFO printf function.
void log_clear(log_t *log)
Empty wrapper API.
void log_fatal(log_t *log, const code char *__generic_ptr f,...)
FATAL printf function.
int8_t log_read(log_t *log, uint8_t *rx_data_buf, uint8_t max_len)
Empty wrapper API.
Implements plot functionality.
LOG init configuration structure.
Definition log.h:84
LOG context structure.
Definition log.h:76