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
8
10 #include <qb/qblog.h>
11
12 void qb_log_format_set(
13 int32_t t,
14 const char *format
15 );
16
18 %n FUNCTION NAME
19
20 %f FILENAME
21
22 %l FILELINE
23
24 %p PRIORITY
25
26 %t TIMESTAMP
27
28 %T TIMESTAMP with milliseconds
29
30 %b BUFFER
31
32 %g TAGS
33
34 %N name (passed into qb_log_init)
35
36 %P PID
37
38 %H hostname
39
40 Any number between % and character specify field length to pad or chop.
41
43 Some of the fields are immediately evaluated and remembered for perfor‐
44 mance reasons, so whenlog messages carry PIDs (not the default) this
45 function needs to be reinvoked following fork (clone) in the respective
46 children. When already linking with libpthread, pthread_atfork callback
47 registration could be useful.
48
50 qb_log_filter_fn_set(3), qb_log_from_external_source_va2(3),
51 qb_log_thread_start(3), qb_log_target_user_data_get(3),
52 qb_log_tags_stringify_fn_set(3), qb_log_file_reopen(3), qb_log_fini(3),
53 qb_log_callsites_dump(3), qb_log_ctl2(3),
54 qb_log_target_user_data_set(3), qb_log_target_format(3),
55 qb_log_thread_priority_set(3), qb_log_facility2int(3),
56 qb_log_callsites_register(3), qb_log_filter_ctl2(3),
57 qb_log_file_close(3), qb_log_real_(3),
58 qb_log_from_external_source_va(3), qb_log_callsite_get(3),
59 qb_log_blackbox_write_to_file(3), qb_log_real_va_(3),
60 qb_log_from_external_source(3), qb_log_blackbox_print_from_file(3),
61 qb_log_facility2str(3), qb_log_callsite_get2(3), qb_log_ctl(3),
62 qb_log_filter_ctl(3), qb_log_custom_close(3), qb_log_init(3),
63 qb_log_file_open(3), qb_log_custom_open(3)
64
66 Copyright (c) 2017 Red Hat, Inc.
67
68
69
70LIBQB 2022-03-23 QB_LOG_FORMAT_SET(3)