Debuggability

1.0

On This Page

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.

DOCA SDK supports error message and debug prints.

For enabling the DOCA SDK log messages one should create a backend and set the verbosity level of that backend, if needed.

For more details about DOCA log, see section “DOCA Log”.

© Copyright 2024, NVIDIA. Last updated on Feb 9, 2024.