Internal Interface Wrap
API reference
Loading...
Searching...
No Matches
Classes
StmLogger.h File Reference

STM32 Logger — UART/SWO/ITM-based logging with full BaseLogger interface. More...

#include "BaseLogger.h"
#include "StmTypes.h"
#include <cstdarg>
Include dependency graph for StmLogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StmLogger
 STM32 Logger — production-quality logging over UART/SWO/printf. More...
 

Detailed Description

STM32 Logger — UART/SWO/ITM-based logging with full BaseLogger interface.

Supports multiple output backends:

Usage

StmLogger logger(&huart2);
config.default_level = hf_log_level_t::HF_LOG_LEVEL_INFO;
logger.Initialize(config);
logger.Info("APP", "System started, version %d.%d", 1, 0);
struct __UART_HandleTypeDef UART_HandleTypeDef
Definition StmUart.h:22
RAII soft-CS: runs assert_fn on construction and deassert_fn on destruction (including early return /...
Definition SoftChipSelectGuard.h:32
STM32 Logger — production-quality logging over UART/SWO/printf.
Definition StmLogger.h:36
Logger configuration structure.
Definition BaseLogger.h:154
hf_log_level_t default_level
Default log level.
Definition BaseLogger.h:155
Author
HardFOC
Date
2025