1QB_LOG_FORMAT_SET(3) libqb Programmer's Manual QB_LOG_FORMAT_SET(3)
2
3
4
6 qb_log_format_set - Set the format specifiers.
7
9 #include <qb/qblog.h>
10
11 void qb_log_format_set(
12 int32_t t,
13 const char *format
14 );
15
17 n FUNCTION NAME f FILENAME l FILELINE p PRIORITY t TIMESTAMP T TIME‐
18 STAMP with milliseconds b BUFFER g TAGS N name (passed into
19 qb_log_init) P PID H hostname
20
21 Any number between % and character specify field length to pad or chop.
22
24 Some of the fields are immediately evaluated and remembered for perfor‐
25 mance reasons, so whenlog messages carry PIDs (not the default) this
26 function needs to be reinvoked following () in the respective chil‐
27 dren. When already linking with , callback registration could be use‐
28 ful.
29
31 qb_log_filter_fn_set(3), qb_log_thread_start(3),
32 qb_log_target_user_data_get(3), qb_log_tags_stringify_fn_set(3),
33 qb_log_file_reopen(3), qb_log_fini(3), qb_log_callsites_dump(3),
34 qb_log_ctl2(3), qb_log_target_user_data_set(3),
35 qb_log_target_format(3), qb_log_thread_priority_set(3),
36 qb_log_facility2int(3), qb_log_callsites_register(3),
37 qb_log_filter_ctl2(3), qb_log_file_close(3), qb_log_real_(3),
38 qb_log_from_external_source_va(3), qb_log_callsite_get(3),
39 qb_log_blackbox_write_to_file(3), qb_log_real_va_(3),
40 qb_log_from_external_source(3), qb_log_blackbox_print_from_file(3),
41 qb_log_facility2str(3), qb_log_ctl(3), qb_log_filter_ctl(3),
42 qb_log_custom_close(3), qb_log_init(3), qb_log_file_open(3),
43 qb_log_custom_open(3)
44
46 Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
47
48
49
50LIBQB 2020-07-30 QB_LOG_FORMAT_SET(3)