Logging Module

The Logging Module makes it possible to write logs by calling a simple function. The usage is the same as the standard printf function:

p("Starting application: version %d", app_version);

Setting up the Logging Module

The process of setting up the Logging Module is similar to the process which is used by the Integration Layer. For example, using the Arduino Serial Library, the setup would be the following:

// Integration function
void log_print(char *str){

void setup(){
    // Integration function registration

As the code examples shows, the registered function should be able to handle a string argument. Setting up the Logging Module using the Arduino framework can be done by using the predefined support macros:


void setup() {
    Serial.begin(9600);  // start serial for output