Logging

We use uLUt library for logging.

printf() should never be used for printing some information - error message, debug data etc. Instead ul_logXXX(), which is declared in ul_log.h, should be used.

Howto

In every file, where you want to log something you must initialize ul_log.h library by using UL_LOG_CUST macro and defining the name of the log domain:

UL_LOG_CUST(ulogd_robot); // Log domain name = "ulogd_" + the name of the source file

Then, you can use one of the functions (macros) bellow. Each macro logs a message with different severity. The severity should be chosen according to the following rules: