DOCA logging infrastructure allows enabling printing DOCA SDK library error messages, and printing debug and error messages from applications.
To work with the DOCA logging mechanism, the header doca_log.h must be included in every source code using it.
All DOCA APIs return the status in the form of doca_error_t.
The return value of every call to the DOCA API should be checked to verify that it was successful. In case of an error, one should look at the meaning of the returned value in the description of the failing function.