.\" Automatically generated man page, do not edit .TH QB_LOG_FROM_EXTERNAL_SOURCE 3 2023-07-21 "LIBQB" "libqb Programmer's Manual" .SH NAME qb_log_from_external_source \- This function is to import logs from other code (like libraries) that provide a callback with their logs. .SH SYNOPSIS .nf .B #include .sp \fBvoid qb_log_from_external_source\fP( \fBconst char *\fP\fIfunction\fP,\fR /* originating function name */ \fBconst char *\fP\fIfilename\fP,\fR /* originating filename */ \fBconst char *\fP\fIformat\fP,\fR /* format string */ \fBuint8_t \fP\fIpriority\fP,\fR /* this takes syslog priorities. */ \fBuint32_t \fP\fIlineno\fP,\fR /* file line number */ \fP /* * this is a uint32_t that you can use with * \fIqb_log_tags_stringify_fn_set()\fR to "tag" a log message with a feature or sub-system then you can use * "%g" in the format specifer to print it out. */ \fBuint32_t \fP\fItags\fP, \fB... \fP\fI\fP ); .fi .SH PARAMS \fBfunction \fP\fIoriginating function name \fP .PP \fBfilename \fP\fIoriginating filename \fP .PP \fBformat \fP\fIformat string \fP .PP \fBpriority \fP\fIthis takes syslog priorities. \fP .PP \fBlineno \fP\fIfile line number \fP .PP \fBtags \fP\fIthis is a uint32_t that you can use with \fIqb_log_tags_stringify_fn_set()\fR to "tag" a log message with a feature or sub-system then you can use "%g" in the format specifer to print it out. \fP .PP \fB \fP\fI(null)\fP .PP .SH DESCRIPTION .SH NOTE .PP the performance of this will not impress you, as the filtering is done on each log message, not beforehand. So try doing basic pre-filtering. .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_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_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.