32.2. Adding debugging to a plugin

Plugins can define their own categories for the debugging system. Three things need to happen:

Elements can then log debugging information using the set of macros. There are five levels of debugging information:

  1. ERROR for fatal errors (for example, internal errors)

  2. WARNING for warnings

  3. INFO for normal information

  4. DEBUG for debug information (for example, device parameters)

  5. LOG for regular operation information (for example, chain handlers)

For each of these levels, there are four macros to log debugging information. Taking the LOG level as an example, there is