Blola is C++ binary logging library for embedded systems.
Library inspired by Trice but has more friendly CLI and no code modifications.
to build:
- C++ 23
- Some transport for logs (SEGGER RTT integration already implemented)
to use host script:
- Python 3
#include <blola/configured/stdout.hpp>
int main() {
blog("Hello World!");
blog("My data: %d", 123);
}Run
make run-just_log
#include <blola/configured/stdout.hpp>
#include <string_view>
int main() {
blog("C string: %s", "aboba2");
blog("std::string_view: %s", std::string_view("view"));
}Run
make run-strings
If you don't define config via define BLOLA_CONFIG_GLOBAL_VARIABLE_NAME (or don't use supplied implementation)
#include <blola/blola.hpp> // blola.hpp does not contains any config for transport
int main() {
blog("Hello World!");
blog("My data: %d", 123);
}Error message:
If type mismatch:
#include <blola/configured/stdout.hpp>
int main() { blog("My data: %d", 'X'); }Error message: