1QB_LOG_TARGET_FORMAT(3)    libqb Programmer's Manual   QB_LOG_TARGET_FORMAT(3)
2
3
4

NAME

6       qb_log_target_format - Format the callsite and timestamp info according
7       to the format.
8
9

SYNOPSIS

11       #include <qb/qblog.h>
12
13       void qb_log_target_format(
14           int32_t                   target,
15           struct qb_log_callsite   *cs,
16           struct timespec          *timestamp,
17           const char               *formatted_message,
18           char                     *output_buffer
19       );
20

DESCRIPTION

22       set using qb_log_format_set() It is intended to be used from your  cus‐
23       tom logger function.
24

STRUCTURES

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

SEE ALSO

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