.\" Automatically generated man page, do not edit .TH QB_LOG_CTL2 3 2020-10-31 "LIBQB" "libqb Programmer's Manual" .SH NAME qb_log_ctl2 \- Extension of main logging control function accepting also strings. .SH SYNOPSIS .nf .B #include .sp \fBint32_t qb_log_ctl2\fP( \fBint32_t \fP\fItarget\fP, \fBenum qb_log_conf \fP\fIconf_type\fP, \fBqb_log_ctl2_arg_t \fP\fIarg\fP ); .fi .SH PARAMS \fBtarget \fP\fIQB_LOG_SYSLOG, QB_LOG_STDERR or result from \fP .PP \fBconf_type \fP\fIconfiguration directive ("what to configure") that accepts either \fP .PP \fBarg \fP\fIthe new value for a state-changing configuration directive, ignored otherwise; for QB_LOG_CONF_IDENT, 's' member as new identifier to openlog(), for all qb_log_ctl-compatible ones, 'i32' member is assumed (although a preferred way is to use that original function directly as it allows for more type safety) \fP .PP .SH DESCRIPTION .SH STRUCTURES .nf \fB struct qb_log_ctl2_arg_t { int32_t \fIi32\fP; const char *\fIs\fP; }; \fP .fi .PP .nf \fB enum qb_log_conf { \fIQB_LOG_CONF_ENABLED\fP; \fIQB_LOG_CONF_FACILITY\fP; \fIQB_LOG_CONF_DEBUG\fP; \fIQB_LOG_CONF_SIZE\fP; \fIQB_LOG_CONF_THREADED\fP; \fIQB_LOG_CONF_PRIORITY_BUMP\fP; \fIQB_LOG_CONF_STATE_GET\fP; \fIQB_LOG_CONF_FILE_SYNC\fP; \fIQB_LOG_CONF_EXTENDED\fP; \fIQB_LOG_CONF_IDENT\fP; \fIQB_LOG_CONF_MAX_LINE_LEN\fP; \fIQB_LOG_CONF_ELLIPSIS\fP; \fIQB_LOG_CONF_USE_JOURNAL\fP; }; \fP .fi .PP .RE .SH NOTE .PP You can use \fIQB_LOG_CTL2_I32\fR and \fIQB_LOG_CTL2_S\fR macros for a convenient on-the-fly construction of the object to be passed as an argument. .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_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_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.