Skip to content

Chamber6821/blola

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blola

Blola is C++ binary logging library for embedded systems.

Library inspired by Trice but has more friendly CLI and no code modifications.

Requirements

to build:

  • C++ 23
  • Some transport for logs (SEGGER RTT integration already implemented)

to use host script:

  • Python 3

Usage

Just log

#include <blola/configured/stdout.hpp>

int main() {
  blog("Hello World!");
  blog("My data: %d", 123);
}

Run

make run-just_log
image

Strings supported

#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
image

Error messages

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:

image

If type mismatch:

#include <blola/configured/stdout.hpp>

int main() { blog("My data: %d", 'X'); }

Error message:

image

About

High-performance binary logging library for C++ embedded projects

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors