1QB_LOG_FROM_EXTERNAL_SOURCE(l3i)bqb Programmer's ManQuBa_lLOG_FROM_EXTERNAL_SOURCE(3)
2
3
4

NAME

6       qb_log_from_external_source  -  This  function  is  to import logs from
7       other code (like libraries) that provide a callback with their logs.
8
9

SYNOPSIS

11       #include <qb/qblog.h>
12
13       void qb_log_from_external_source(
14           const char   *function,  /* originating function name */
15           const char   *filename,  /* originating filename */
16           const char   *format,    /* format string */
17           uint8_t       priority,  /* this takes syslog priorities. */
18           uint32_t      lineno,    /* file line number */
19           /*
20            * this is a uint32_t that you can use with
21            * qb_log_tags_stringify_fn_set() to "tag" a log message with a feature or sub-system then you can use
22            * "%g" in the format specifer to print it out.
23            */
24           uint32_t      tags,
25           ...
26       );
27

PARAMS

29       function originating function name
30
31       filename originating filename
32
33       format   format string
34
35       priority this takes syslog priorities.
36
37       lineno   file line number
38
39       tags       this   is   a   uint32_t   that    you    can    use    with
40       qb_log_tags_stringify_fn_set() to "tag" a log message with a feature or
41       sub-system then you can use "%g" in the format  specifer  to  print  it
42       out.
43
44                (null)
45

DESCRIPTION

NOTE

48       the  performance of this will not impress you, as the filtering is done
49       on each log message, not beforehand. So try doing basic pre-filtering.
50

SEE ALSO

52       qb_log_filter_fn_set(3), qb_log_from_external_source_va2(3),
53       qb_log_thread_start(3), qb_log_target_user_data_get(3),
54       qb_log_tags_stringify_fn_set(3), qb_log_file_reopen(3), qb_log_fini(3),
55       qb_log_callsites_dump(3), qb_log_ctl2(3),
56       qb_log_target_user_data_set(3), qb_log_target_format(3),
57       qb_log_thread_priority_set(3), qb_log_facility2int(3),
58       qb_log_callsites_register(3), qb_log_filter_ctl2(3),
59       qb_log_file_close(3), qb_log_format_set(3), qb_log_real_(3),
60       qb_log_from_external_source_va(3), qb_log_callsite_get(3),
61       qb_log_blackbox_write_to_file(3), qb_log_real_va_(3),
62       qb_log_blackbox_print_from_file(3), qb_log_facility2str(3),
63       qb_log_callsite_get2(3), qb_log_ctl(3), qb_log_filter_ctl(3),
64       qb_log_custom_close(3), qb_log_init(3), qb_log_file_open(3),
65       qb_log_custom_open(3)
66
68       Copyright (c) 2017 Red Hat, Inc.
69
70
71
72LIBQB                             2023-07-21    QB_LOG_FROM_EXTERNAL_SOURCE(3)
Impressum