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

SYNOPSIS

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

DESCRIPTION

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

STRUCTURES

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

SEE ALSO

38       qb_log_filter_fn_set(3), qb_log_thread_start(3),
39       qb_log_target_user_data_get(3), qb_log_tags_stringify_fn_set(3),
40       qb_log_file_reopen(3), qb_log_fini(3), qb_log_callsites_dump(3),
41       qb_log_ctl2(3), qb_log_target_user_data_set(3),
42       qb_log_thread_priority_set(3), qb_log_facility2int(3),
43       qb_log_callsites_register(3), qb_log_filter_ctl2(3),
44       qb_log_file_close(3), qb_log_format_set(3), qb_log_real_(3),
45       qb_log_from_external_source_va(3), qb_log_callsite_get(3),
46       qb_log_blackbox_write_to_file(3), qb_log_real_va_(3),
47       qb_log_from_external_source(3), qb_log_blackbox_print_from_file(3),
48       qb_log_facility2str(3), qb_log_ctl(3), qb_log_filter_ctl(3),
49       qb_log_custom_close(3), qb_log_init(3), qb_log_file_open(3),
50       qb_log_custom_open(3)
51
53       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
54
55
56
57LIBQB                             2020-07-30           QB_LOG_TARGET_FORMAT(3)
Impressum