1QB_LOG_CALLSITES_REGISTER(3)libqb Programmer's ManuaQlB_LOG_CALLSITES_REGISTER(3)
2
3
4

NAME

6       qb_log_callsites_register  - If you are using dynamically loadable mod‐
7       ules via dlopen() and you load them after qb_log_init() then after  you
8       load the module you will need to do the following to get the filters to
9       work in that module:
10
11

SYNOPSIS

13       #include <qb/qblog.h>
14
15       int32_t qb_log_callsites_register(
16           struct qb_log_callsite   *_start,
17           struct qb_log_callsite   *_stop
18       );
19

DESCRIPTION

21          _start = dlsym (dl_handle, QB_ATTR_SECTION_START_STR);
22       _stop = dlsym (dl_handle, QB_ATTR_SECTION_STOP_STR);
23       qb_log_callsites_register(_start, _stop);
24
25

STRUCTURES

27       An instance of this structure is created for each log message with the message-id.
28
29
30       struct qb_log_callsite {
31           const char   *function;
32           const char   *filename;
33           const char   *format;
34           uint8_t       priority;
35           uint32_t      lineno;
36           uint32_t      targets;
37           uint32_t      tags;
38           const char   *message_id;
39       };
40

SEE ALSO

42       qb_log_filter_fn_set(3), qb_log_from_external_source_va2(3),
43       qb_log_thread_start(3), qb_log_target_user_data_get(3),
44       qb_log_tags_stringify_fn_set(3), qb_log_file_reopen(3), qb_log_fini(3),
45       qb_log_callsites_dump(3), qb_log_ctl2(3),
46       qb_log_target_user_data_set(3), qb_log_target_format(3),
47       qb_log_thread_priority_set(3), qb_log_facility2int(3),
48       qb_log_filter_ctl2(3), qb_log_file_close(3), qb_log_format_set(3),
49       qb_log_real_(3), qb_log_from_external_source_va(3),
50       qb_log_callsite_get(3), qb_log_blackbox_write_to_file(3),
51       qb_log_real_va_(3), qb_log_from_external_source(3),
52       qb_log_blackbox_print_from_file(3), qb_log_facility2str(3),
53       qb_log_callsite_get2(3), qb_log_ctl(3), qb_log_filter_ctl(3),
54       qb_log_custom_close(3), qb_log_init(3), qb_log_file_open(3),
55       qb_log_custom_open(3)
56
58       Copyright (c) 2017 Red Hat, Inc.
59
60
61
62LIBQB                             2021-11-12      QB_LOG_CALLSITES_REGISTER(3)
Impressum