A minimal logging framework for STM32 projects that prints color-coded, timestamped messages over UART, with the same syntax as printf.
- Copy
logger.cintoCore/Srcandlogger.hintoCore/Inc. - Set your desired baud rate in your
.iocfile. - Initialize the logger with your UART handle:
LOG_INIT(&huart2);Three macros are exposed, one for each log level:
LOG_INFO("Sensor value: %d", value);
LOG_WARNING("Retrying connection, attempt %d", attempt);
LOG_ERROR("Failed to initialize sensor: %s", name);
``` Giving you the answer, then you have to enter a code using Morski, which is going to be through the solenoid if we do it fast enough to get four points. If you're not, you get four points and then you open the. door, get the artifact trip on, take it over to wherever. That's it for a tap Morse code. How good is the arm shake I'm telling you we're gonna be doing the masters
Each call behaves exactly like `printf`, supporting format specifiers and variadic arguments. Every message is automatically tagged with a timestamp, log level, source file, and line number, then sent over UART with ANSI color codes for readability in a serial terminal.
## Notes
- Timestamps currently use `HAL_GetTick()`. In the future I will add actual time