qb_log_callsites_register(3)

qb_log_callsites_register3

If you are using dynamically loadable modules via dlopen() and you load them after qb_log_init() then after you load the module you will need to do the following to get the filters to work in that module:

Usage

#include <qb/qblog.h>

int32_t qb_log_callsites_register(
    struct qb_log_callsite   *_start,
    struct qb_log_callsite   *_stop
);

Overview

   _start = dlsym (dl_handle, QB_ATTR_SECTION_START_STR);
_stop = dlsym (dl_handle, QB_ATTR_SECTION_STOP_STR);
qb_log_callsites_register(_start, _stop);

Structures

An instance of this structure is created for each log message with the message-id. 
struct qb_log_callsite {
    const char   *function;
    const char   *filename;
    const char   *format;
    uint8_t       priority;
    uint32_t      lineno;
    uint32_t      targets;
    uint32_t      tags;
    const char   *message_id;
};

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From libqb 2.0.10-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.