.\" Automatically generated man page, do not edit .TH QB_LOG_TARGET_FORMAT 3 2020-10-31 "LIBQB" "libqb Programmer's Manual" .SH NAME qb_log_target_format \- Format the callsite and timestamp info according to the format. .SH SYNOPSIS .nf .B #include .sp \fBvoid qb_log_target_format\fP( \fBint32_t \fP\fItarget\fP, \fBstruct qb_log_callsite *\fP\fIcs\fP, \fBstruct timespec *\fP\fItimestamp\fP, \fBconst char *\fP\fIformatted_message\fP, \fBchar *\fP\fIoutput_buffer\fP ); .fi .SH DESCRIPTION .PP set using \fIqb_log_format_set()\fR It is intended to be used from your custom logger function. .SH STRUCTURES .nf \fB An instance of this structure is created for each log message. struct qb_log_callsite { const char *\fIfunction\fP; const char *\fIfilename\fP; const char *\fIformat\fP; uint8_t \fIpriority\fP; uint32_t \fIlineno\fP; uint32_t \fItargets\fP; uint32_t \fItags\fP; }; \fP .fi .PP .RE .SH SEE ALSO .PP .nh .ad l \fIqb_log_filter_fn_set\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_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_format_set\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_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) 2010-2020 Red Hat, Inc. All rights reserved.