XDP Log

Log Levels

XDP_LOG_TRACE
[source]

A log level describing events showing step by step execution of your code that can be ignored during the standard operation, but may be useful during extended debugging sessions.

XDP_LOG_DEBUG
[source]

A log level used for events considered to be useful during software debugging when more granular information is needed.

XDP_LOG_INFO
[source]

An event happened, the event is purely informative and can be ignored during normal operations.

XDP_LOG_WARNING
[source]

Unexpected behavior happened inside the application, but it is continuing its work and the key business features are operating as expected.

XDP_LOG_ERROR
[source]

One or more functionalities are not working, preventing some functionalities from working correctly.

XDP_LOG_CRITICAL
[source]

One or more key business functionalities are not working and the whole system doesn’t fulfill the business functionalities.

XDP_LOG_LVLS
[source]

Log levels

Methods

XDP_LOG_MSG(level, msg)
[source]

Log a message

Parameters:
  • level (int) – Log level

  • msg (const char*) – Variable arg (formated) message to be logged in

XDP_LOG_HEXDUMP(level, description, buffer, buffer_len)
[source]

Log a hexdump

Parameters:
  • level (int) – Log level

  • description (const char*) – Brief description of the memory to be dumped

  • buffer (void*) – Buffer to be dumped

  • buffer_len (size_t) – Length of the buffer to be dumped