1QB_LOG_CTL2(3)             libqb Programmer's Manual            QB_LOG_CTL2(3)
2
3
4

NAME

6       qb_log_ctl2 - Extension of main logging control function accepting also
7       strings.
8
9

SYNOPSIS

11       #include <qb/qblog.h>
12
13       int32_t qb_log_ctl2(
14           int32_t            target,
15           enum qb_log_conf   conf_type,
16           qb_log_ctl2_arg_t  arg
17       );
18

PARAMS

20       target    QB_LOG_SYSLOG, QB_LOG_STDERR or result from
21
22       conf_type configuration directive ("what to  configure")  that  accepts
23       either
24
25       arg        the  new value for a state-changing configuration directive,
26       ignored otherwise; for QB_LOG_CONF_IDENT, 's' member as new  identifier
27       to  openlog(),  for all qb_log_ctl-compatible ones, 'i32' member is as‐
28       sumed (although a preferred way is to use that  original  function  di‐
29       rectly as it allows for more type safety)
30

DESCRIPTION

STRUCTURES

33       struct qb_log_ctl2_arg_t {
34           int32_t       i32;
35           const char   *s;
36       };
37
38       enum qb_log_conf {
39             QB_LOG_CONF_ENABLED;
40             QB_LOG_CONF_FACILITY;
41             QB_LOG_CONF_DEBUG;
42             QB_LOG_CONF_SIZE;
43             QB_LOG_CONF_THREADED;
44             QB_LOG_CONF_PRIORITY_BUMP;
45             QB_LOG_CONF_STATE_GET;
46             QB_LOG_CONF_FILE_SYNC;
47             QB_LOG_CONF_EXTENDED;
48             QB_LOG_CONF_IDENT;
49             QB_LOG_CONF_MAX_LINE_LEN;
50             QB_LOG_CONF_ELLIPSIS;
51             QB_LOG_CONF_USE_JOURNAL;
52       };
53

NOTE

55       You  can  use QB_LOG_CTL2_I32 and QB_LOG_CTL2_S macros for a convenient
56       on-the-fly construction of the object to be passed as an arg argument.
57

SEE ALSO

59       qb_log_filter_fn_set(3), qb_log_from_external_source_va2(3),
60       qb_log_thread_start(3), qb_log_target_user_data_get(3),
61       qb_log_tags_stringify_fn_set(3), qb_log_file_reopen(3), qb_log_fini(3),
62       qb_log_callsites_dump(3), qb_log_target_user_data_set(3),
63       qb_log_target_format(3), qb_log_thread_priority_set(3),
64       qb_log_facility2int(3), qb_log_callsites_register(3),
65       qb_log_filter_ctl2(3), qb_log_file_close(3), qb_log_format_set(3),
66       qb_log_real_(3), qb_log_from_external_source_va(3),
67       qb_log_callsite_get(3), qb_log_blackbox_write_to_file(3),
68       qb_log_real_va_(3), qb_log_from_external_source(3),
69       qb_log_blackbox_print_from_file(3), qb_log_facility2str(3),
70       qb_log_callsite_get2(3), qb_log_ctl(3), qb_log_filter_ctl(3),
71       qb_log_custom_close(3), qb_log_init(3), qb_log_file_open(3),
72       qb_log_custom_open(3)
73
75       Copyright (c) 2017 Red Hat, Inc.
76
77
78
79LIBQB                             2021-03-03                    QB_LOG_CTL2(3)
Impressum