oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
Macros
log.h File Reference
#include "ove/console.h"
#include "ove_config.h"
#include <stdio.h>
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OVE_LOG_LEVEL   OVE_LOG_LEVEL_INF
 Compile-time log level threshold.
 
#define OVE_LOG_ERR(fmt, ...)   _OVE_LOG_OUTPUT("[E] ", fmt, ##__VA_ARGS__)
 Log an error message.
 
#define OVE_LOG_WRN(fmt, ...)   _OVE_LOG_OUTPUT("[W] ", fmt, ##__VA_ARGS__)
 Log a warning message.
 
#define OVE_LOG_INF(fmt, ...)   _OVE_LOG_OUTPUT("[I] ", fmt, ##__VA_ARGS__)
 Log an informational message.
 
#define OVE_LOG_DBG(fmt, ...)   _OVE_LOG_OUTPUT("[D] ", fmt, ##__VA_ARGS__)
 Log a debug message.
 
#define _OVE_LOG_RAW(fmt, ...)
 Internal helper: format and emit a raw (unprefixed) console line.
 
#define OVE_LOG(fmt, ...)   _OVE_LOG_RAW(fmt, ##__VA_ARGS__)
 Emit a raw (unprefixed) log message.
 
Log level constants

Numeric severity levels in ascending verbosity order. Pass one of these as the value of OVE_LOG_LEVEL to control the compile-time filter.

#define OVE_LOG_LEVEL_ERR   0
 Error level — non-recoverable failures.
 
#define OVE_LOG_LEVEL_WRN   1
 Warning level — unexpected but recoverable conditions.
 
#define OVE_LOG_LEVEL_INF   2
 Info level — normal operational milestones (default).
 
#define OVE_LOG_LEVEL_DBG   3
 Debug level — verbose diagnostic output.