.\" Automatically generated man page, do not edit .TH QB_LOG_FORMAT_SET 3 2021-03-03 "LIBQB" "libqb Programmer's Manual" .SH NAME qb_log_format_set \- Set the format specifiers. .SH SYNOPSIS .nf .B #include .sp \fBvoid qb_log_format_set\fP( \fBint32_t \fP\fIt\fP, \fBconst char *\fP\fIformat\fP ); .fi .SH DESCRIPTION .PP %n FUNCTION NAME .PP %f FILENAME .PP %l FILELINE .PP %p PRIORITY .PP %t TIMESTAMP .PP %T TIMESTAMP with milliseconds .PP %b BUFFER .PP %g TAGS .PP %N name (passed into qb_log_init) .PP %P PID .PP %H hostname .PP Any number between % and character specify field length to pad or chop. .SH NOTE .PP Some of the fields are immediately evaluated and remembered for performance reasons, so whenlog messages carry PIDs (not the default) this function needs to be reinvoked following \fBfork\fP (\fBclone\fP) in the respective children. When already linking with \fBlibpthread\fP, \fBpthread_atfork\fP callback registration could be useful. .SH SEE ALSO .PP .nh .ad l \fIqb_log_filter_fn_set\fR(3), \fIqb_log_from_external_source_va2\fR(3), \fIqb_log_thread_start\fR(3), \fIqb_log_target_user_data_get\fR(3), \fIqb_log_tags_stringify_fn_set\fR(3), \fIqb_log_file_reopen\fR(3), \fIqb_log_fini\fR(3), \fIqb_log_callsites_dump\fR(3), \fIqb_log_ctl2\fR(3), \fIqb_log_target_user_data_set\fR(3), \fIqb_log_target_format\fR(3), \fIqb_log_thread_priority_set\fR(3), \fIqb_log_facility2int\fR(3), \fIqb_log_callsites_register\fR(3), \fIqb_log_filter_ctl2\fR(3), \fIqb_log_file_close\fR(3), \fIqb_log_real_\fR(3), \fIqb_log_from_external_source_va\fR(3), \fIqb_log_callsite_get\fR(3), \fIqb_log_blackbox_write_to_file\fR(3), \fIqb_log_real_va_\fR(3), \fIqb_log_from_external_source\fR(3), \fIqb_log_blackbox_print_from_file\fR(3), \fIqb_log_facility2str\fR(3), \fIqb_log_callsite_get2\fR(3), \fIqb_log_ctl\fR(3), \fIqb_log_filter_ctl\fR(3), \fIqb_log_custom_close\fR(3), \fIqb_log_init\fR(3), \fIqb_log_file_open\fR(3), \fIqb_log_custom_open\fR(3) .ad .hy .SH "COPYRIGHT" .PP Copyright (c) 2017 Red Hat, Inc.